-
Notifications
You must be signed in to change notification settings - Fork 3
"springc"
Niclas17 edited this page Jul 7, 2022
·
3 revisions
[ "springc", "name", [x1, y1], [x2,y2], r, n, off ]
Symbol for compression spring with label.
-
"name"
label text, typeset in MathJax math mode -
r
(optional, default: equivalent to 6 pixel) radius of the turns -
n
(optional, default: smart value for nice appearance) number of turns -
off
(optional, default: equivalent to 14 pixel) lateral offset of the label anchor point
[
[ "grid", "x","y", -5,5,-4,5, 50, [10,10], [0,0] ],
["springc", "name", [1,1],[3,1] ],
[ "point", "1", [1,1],8 ],
[ "point", "2", [3,1],8 ]
]
In order to try code snippets in jsfiddle,
- copy the code from the wiki page to the clipboard
- follow the link for the JSXGraph version you want to try
- Replace the code in the HTML section (contents of
<p hidden id="init">
) with the content of the clipboard