"forceGen" - mkraska/meclib GitHub Wiki

[ "forceGen", "name", [x,y] ] Interactive force generator. It consists of an input field for the label and a force prototype, which can be dragged to produce new forces. Forces can be deleted by dragging them outside of the canvas.

  • "name" initial value for the label input field.
  • [x,y] position of the upper left border of the label input field.

see also: "force"

The input field automatically corrects non-valid names (in terms of STACK). Example: MAx -> M_Ax.

Example

image

[
  [ "grid", "x","y", -5,5,-4,5, 50, [10,10], [0,0] ],
[ "forceGen", "name", [2,2] ]
]