Difference between revisions of "Shape:lineTo"

From GiderosMobile
m (Text replacement - "<source" to "<syntaxhighlight")
m (Text replacement - "</source>" to "</syntaxhighlight>")
Line 9: Line 9:
 
<syntaxhighlight lang="lua">
 
<syntaxhighlight lang="lua">
 
  Shape:lineTo(x,y)
 
  Shape:lineTo(x,y)
</source>
+
</syntaxhighlight>
 
=== <translate>Parameters</translate> ===
 
=== <translate>Parameters</translate> ===
 
'''x''': (number) <translate>x coordinate of the point.</translate> <br/>
 
'''x''': (number) <translate>x coordinate of the point.</translate> <br/>

Revision as of 15:32, 13 July 2023


Available since: Gideros 2011.6
Class: Shape

Description


Adds the given point to the current subpath, connected to the previous one by a straight line.

 Shape:lineTo(x,y)

Parameters

x: (number) x coordinate of the point.
y: (number) y coordinate of the point.