How to manipulate Canvas elements: Difference between revisions

Jump to navigation Jump to search
Line 105: Line 105:
|}<hr/>
|}<hr/>
=== text ===
=== text ===
  '''parameters''': (group, text, size, origin=nil, color="#0", align="left-baseline")
  '''parameters''': (group, text, origin=nil, size=nil, color="#0", align="left-baseline")
Plots a text as <'''group'''>'s child.
Plots a text as <'''group'''>'s child.
* '''text''' the text itself as string.
* '''text''' the text itself as string.
* '''size''' font size and aspect as [<size-px>,<height/width>].
* '''origin''' optional as [x,y] in pixels, [0,0] by default.
* '''origin''' optional as [x,y] in pixels, [0,0] by default.
* '''size''' optional font size and aspect as [<size-px>,<height/width>]. [11,1] by default.
* '''color''' optional font color as [r,g,b] or "#rrggbb". Black  by default.
* '''color''' optional font color as [r,g,b] or "#rrggbb". Black  by default.
* '''align''' optional origin reference. "left-baseline" by default.
* '''align''' optional origin reference. "left-baseline" by default.
<hr/>
<hr/>
=== polyline ===
=== polyline ===
  '''parameters''': (group, xSet, ySet, color="#0", symmetrical=' ')
  '''parameters''': (group, xSet, ySet, color="#0", symmetrical=' ')
229

edits

Navigation menu