"node" - mkraska/meclib GitHub Wiki

[ "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"]
]