Difference between revisions of "Shape:lineTo"
From GiderosMobile
(Created page with "__NOTOC__ '''Available since:''' Gideros 2011.6<br/> === Description === <br /> Adds the given point to the current subpath, connected to the previous one by a straight line.<...") |
|||
| (10 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
__NOTOC__ | __NOTOC__ | ||
'''Available since:''' Gideros 2011.6<br/> | '''Available since:''' Gideros 2011.6<br/> | ||
| + | '''Class:''' [[Shape]]<br/> | ||
| + | |||
=== Description === | === Description === | ||
| − | + | 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. | + | <syntaxhighlight lang="lua"> |
| − | < | + | Shape:lineTo(x,y) |
| − | + | </syntaxhighlight> | |
| − | + | ||
| − | </ | + | === Parameters === |
| − | '''x | + | '''x''': (number) x coordinate of the point<br/> |
| − | '''y | + | '''y''': (number) y coordinate of the point<br/> |
| + | |||
| + | {{Shape}} | ||
Latest revision as of 08: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