Skip to content

"springt"

Niclas17 edited this page Jul 7, 2022 · 3 revisions

[ "springt", "name", [x1, y1], [x2,y2], r, lf, (n (, off)) ]

symbol for a tensile spring

  • "name" label, typeset in MathJax math mode
  • [x1, y1], [x2,y2] start and end point
  • r (optional, default: 6 pixel) radius of the turns in pixel
  • lf (optional, default 20) length of the terminal lines in % of the total length
  • n (optional, default: smart value, making a nice appearance) number of turns
  • off (optional, default: equivalent to 14 pixels), in standard grid units

Example

image

[
  [ "grid", "x","y", -5,5,-4,5, 50, [10,10], [0,0] ],
  ["springt", "name", [1,1],[3,1] ],
  [ "point", "1", [1,1],8 ],
  [ "point", "2", [3,1],7 ]
]

Tryout Space

In order to try code snippets in jsfiddle,

  1. copy the code from the wiki page to the clipboard
  2. follow the link for the JSXGraph version you want to try
  3. Replace the code in the HTML section (contents of <p hidden id="init">) with the content of the clipboard
Clone this wiki locally