229
edits
Line 125: | Line 125: | ||
! example !! Screenshot | ! example !! Screenshot | ||
|- | |- | ||
| <syntaxhighlight lang="xml"> | | | ||
{{Note| This assumes that you already have a top-level root group set up, and his ''group'' child named '''myGroup'''. }} <syntaxhighlight lang="xml"> | |||
var (red,blue,green,orange) = ['#ee0000', [0,0,1], [0,0.8,0], '#ea9a32' ]; | var (red,blue,green,orange) = ['#ee0000', [0,0,1], [0,0.8,0], '#ea9a32' ]; | ||
canvas.plot2D.polyline(myGroup,[150,181,194,157,199],[52,20,64,28,36]); | canvas.plot2D.polyline(myGroup,[150,181,194,157,199],[52,20,64,28,36]); | ||
Line 148: | Line 145: | ||
canvas.plot2D.text(myGroup,'Symmetrical="yx"',[12,125],,orange); | canvas.plot2D.text(myGroup,'Symmetrical="yx"',[12,125],,orange); | ||
</syntaxhighlight> | </syntaxhighlight> | ||
[[File:Plot2D.polyline.png|thumb|plot2D.polyline example]] | || [[File:Plot2D.polyline.png|thumb|plot2D.polyline example]] | ||
|} | |} |
edits