Difference between revisions of "Shape:lineTo"

From GiderosMobile
m (Text replacement - "<source" to "<syntaxhighlight")
Line 7: Line 7:
 
Adds the given point to the current subpath, connected to the previous one by a straight line.<br />
 
Adds the given point to the current subpath, connected to the previous one by a straight line.<br />
 
<br /></translate>
 
<br /></translate>
<source lang="lua">
+
<syntaxhighlight lang="lua">
 
  Shape:lineTo(x,y)
 
  Shape:lineTo(x,y)
 
</source>
 
</source>

Revision as of 14:30, 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.

<syntaxhighlight lang="lua">

Shape:lineTo(x,y)

</source>

Parameters

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