Canvas Nasal API: Difference between revisions

Jump to navigation Jump to search
Line 492: Line 492:


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. <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,...].
'''Example:''' my_path.setData([2, 4], [10, 20, 10, 40]);


=== setDataGeo ===
=== setDataGeo ===
1,360

edits

Navigation menu