Canvas Nasal API: Difference between revisions

Line 669: Line 669:
Coords is a vector with the numbers/coordinates that the command needs.
Coords is a vector with the numbers/coordinates that the command needs.


See $FGData/Nasal/canvas.api for list of all commands and how many numbers each require.
See this list of all commands and how many coords they require.
 
  VG_CLOSE_PATH:    0,
  VG_MOVE_TO:        2,
  VG_MOVE_TO_ABS:    2,
  VG_MOVE_TO_REL:    2,
  VG_LINE_TO:        2,
  VG_LINE_TO_ABS:    2,
  VG_LINE_TO_REL:    2,
  VG_HLINE_TO:      1,
  VG_HLINE_TO_ABS:  1,
  VG_HLINE_TO_REL:  1,
  VG_VLINE_TO:      1,
  VG_VLINE_TO_ABS:  1,
  VG_VLINE_TO_REL:  1,
  VG_QUAD_TO:        4,
  VG_QUAD_TO_ABS:    4,
  VG_QUAD_TO_REL:    4,
  VG_CUBIC_TO:      6,
  VG_CUBIC_TO_ABS:  6,
  VG_CUBIC_TO_REL:  6,
  VG_SQUAD_TO:      2,
  VG_SQUAD_TO_ABS:  2,
  VG_SQUAD_TO_REL:  2,
  VG_SCUBIC_TO:      4,
  VG_SCUBIC_TO_ABS:  4,
  VG_SCUBIC_TO_REL:  4,
  VG_SCCWARC_TO:    5,
  VG_SCCWARC_TO_ABS: 5,
  VG_SCCWARC_TO_REL: 5,
  VG_SCWARC_TO:      5,
  VG_SCWARC_TO_ABS:  5,
  VG_SCWARC_TO_REL:  5,
  VG_LCCWARC_TO:    5,
  VG_LCCWARC_TO_ABS: 5,
  VG_LCCWARC_TO_REL: 5,
  VG_LCWARC_TO:      5,
  VG_LCWARC_TO_ABS:  5,
  VG_LCWARC_TO_REL:  5,


=== addSegmentGeo ===
=== addSegmentGeo ===
574

edits