How to manipulate Canvas elements: Difference between revisions

Jump to navigation Jump to search
Line 30: Line 30:
[[File:Plot2D.line.png|thumb|]]
[[File:Plot2D.line.png|thumb|]]
|}
|}
 
<hr/>
=== hzLine ===
=== hzLine ===
Plots an horizontal line as <group>'s child.<br />
Plots an horizontal line as <group>'s child.<br />
Line 37: Line 37:
* '''length'''  in pixels.
* '''length'''  in pixels.
* '''color''' optional as [r,g,b] or "#rrggbb". Black by default.
* '''color''' optional as [r,g,b] or "#rrggbb". Black by default.
<hr/>
=== vtLine ===
=== vtLine ===
Plots a vertical line as <group>'s child.<br />
Plots a vertical line as <group>'s child.<br />
Line 43: Line 44:
* '''length'''  in pixels.
* '''length'''  in pixels.
* '''color''' optional as [r,g,b] or "#rrggbb". Black by default.
* '''color''' optional as [r,g,b] or "#rrggbb". Black by default.
<hr/>
=== dashedLine ===
=== dashedLine ===
Plots a vertical line as <group>'s child.<br />
Plots a vertical line as <group>'s child.<br />
Line 66: Line 68:
|| [[File:Plot2D.dashedLine example.png|thumb]]
|| [[File:Plot2D.dashedLine example.png|thumb]]
|}
|}
<hr/>
=== rectangle ===
=== rectangle ===
Plots a rectangle as <group>'s child.<br />
Plots a rectangle as <group>'s child.<br />
Line 74: Line 77:
* '''fill''' optional fill color as [r,g,b] or "#rrggbb", No filled by default.
* '''fill''' optional fill color as [r,g,b] or "#rrggbb", No filled by default.
* '''rounded''' optional corner radius in pixels, Not rounded by default.
* '''rounded''' optional corner radius in pixels, Not rounded by default.
<hr/>
=== grid ===
=== grid ===
Plots a grid as <group>'s child.<br />
Plots a grid as <group>'s child.<br />
229

edits

Navigation menu