Skip to content
mkraska edited this page Apr 29, 2023 · 6 revisions

[ "node", "name", [x,y], off, color ]

Node (small white circle, typically indicates hinge point) with label.

  • "name" label text, typeset in MathJax math mode.
  • [x,y] center point
  • off (optional, default: 10 pixel) offset of label text anchor from center point
  • color (optional, default: fillcolor white, labelcolor black) set the color for label and fill

Example

image

[
  [ "grid", "x","y", -5,5,-4,5, 50, [10,10], [0,0] ],
  [ "node", "name", [2,2] ],
  [ "node", "S_2", [3,2], 1, "red"]
]

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