Difference between revisions of "Shape:lineTo"

From GiderosMobile
m (Text replacement - "</source>" to "</syntaxhighlight>")
 
Line 1: Line 1:
 
__NOTOC__
 
__NOTOC__
<languages />
+
'''Available since:''' Gideros 2011.6<br/>
'''<translate>Available since</translate>:''' Gideros 2011.6<br/>
+
'''Class:''' [[Shape]]<br/>
'''<translate>Class</translate>:''' [[Special:MyLanguage/Shape|Shape]]<br/>
+
 
=== <translate>Description</translate> ===
+
=== Description ===
<translate><br />
+
Adds the given point to the current subpath, connected to the previous one by a straight line.
Adds the given point to the current subpath, connected to the previous one by a straight line.<br />
 
<br /></translate>
 
 
<syntaxhighlight lang="lua">
 
<syntaxhighlight lang="lua">
Shape:lineTo(x,y)
+
Shape:lineTo(x,y)
 
</syntaxhighlight>
 
</syntaxhighlight>
=== <translate>Parameters</translate> ===
+
 
'''x''': (number) <translate>x coordinate of the point.</translate> <br/>
+
=== Parameters ===
'''y''': (number) <translate>y coordinate of the point.</translate> <br/>
+
'''x''': (number) x coordinate of the point<br/>
 +
'''y''': (number) y coordinate of the point<br/>
  
 
{{Shape}}
 
{{Shape}}

Latest revision as of 07:41, 17 October 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