Canvas Nasal API: Difference between revisions

Jump to navigation Jump to search
Line 491: Line 491:
'''Parameters:''' (cmds, points)
'''Parameters:''' (cmds, points)


Re-sets the data structure for a plot. <b>cmds</b> is an array containing the draw commands (integers, but they can be referenced via canvas.Path.VG_LINE_TO or canvas.Path.VG_MOVE_TO etc.) and points an array containing the associated points to which the curve is to be drawn in the form [x1, y1, x2, y2,...].
Re-sets the data structure for a plot. cmds is an array containing the draw commands (integers, but they can be referenced via canvas.Path.VG_LINE_TO or canvas.Path.VG_MOVE_TO etc.) and points an array containing the associated points to which the curve is to be drawn in the form [x1, y1, x2, y2,...].




1,360

edits

Navigation menu