Canvas Nasal API: Difference between revisions

Jump to navigation Jump to search
→‎addSegment: More details
No edit summary
(→‎addSegment: More details)
Line 659: Line 659:
?
?
=== addSegment ===
=== addSegment ===
'''Parameters:''' (cmd, coords...)
'''Parameters:''' (cmd, coords)
 
Add a path segment.
 
Cmd can for example be canvas.Path.VG_MOVE_TO
 
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.


Add a path segment
=== addSegmentGeo ===
=== addSegmentGeo ===
'''Parameters:''' (cmd, coords...)
'''Parameters:''' (cmd, coords...)
574

edits

Navigation menu