How to manipulate Canvas elements: Difference between revisions

Jump to navigation Jump to search
Line 271: Line 271:
  'left-center'  'center-center'  'right-center'
  'left-center'  'center-center'  'right-center'
  'left-bottom'  'center-bottom'  'right-bottom'</span> Is nothing other than a convenient way to refer to (Xmin,Ymin), (xXmin+Xnax/2,Ymin), etc.
  'left-bottom'  'center-bottom'  'right-bottom'</span> Is nothing other than a convenient way to refer to (Xmin,Ymin), (xXmin+Xnax/2,Ymin), etc.
<br />
'''Plot2D''' (and '''Canvas API''') uses such nomenclature.<br />
'''Plot2D''' (and '''Canvas API''') uses such nomenclature.<br />
Let's apply a translation:
<syntaxhighlight>
arrow.setTranslation(80, 150);
</syntaxhighlight>[[File:Arrow.gif|none]]
229

edits

Navigation menu