How to manipulate Canvas elements: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
Line 10: Line 10:
</syntaxhighlight>Once executed, you can try the examples given below.<br />
</syntaxhighlight>Once executed, you can try the examples given below.<br />


== ''"Create"'' helpers ==
== ''Create'' helpers ==


=== line ===
=== line ===
Line 240: Line 240:
* '''elem''' element to be resized.
* '''elem''' element to be resized.
*  '''factors''' as [Xfactor, Yfactor].
*  '''factors''' as [Xfactor, Yfactor].
*  '''ref''' optional: the relative point to keep in-place.
*  '''ref''' optional: the relative point to keep in-place, as string. May be left-top', 'left-center', 'left-bottom',
            'center-top', 'center-center', 'center-bottom',
'right-top', 'right-center', or 'right-bottom'.<br />
229

edits

Navigation menu