How to manipulate Canvas elements: Difference between revisions

Jump to navigation Jump to search
Line 38: Line 38:


=== hzLine ===
=== hzLine ===
  '''Parameters:''' (group, from, length, color)
  '''Parameters:''' (group, from, length, color="#0")
Plots an horizontal line as <'''group'''>'s child.
Plots an horizontal line as <'''group'''>'s child.
* '''from''' as [x,y] in pixels.
* '''from''' as [x,y] in pixels.
Line 44: Line 44:
* '''color''' optional as [r,g,b] or "#rrggbb". Black by default.
* '''color''' optional as [r,g,b] or "#rrggbb". Black by default.
<hr/>
<hr/>
=== vtLine ===
=== vtLine ===
  '''Parameters:''' (group, from, length, color)
  '''Parameters:''' (group, from, length, color)
229

edits

Navigation menu