Difference between revisions of "love.graphics.triangle"
m (undo) |
|||
Line 1: | Line 1: | ||
− | + | Draws a triangle. | |
− | == | + | == Function == |
− | === | + | === Synopsis === |
<source lang="lua"> | <source lang="lua"> | ||
love.graphics.triangle( mode, x1, y1, x2, y2, x3, y3 ) | love.graphics.triangle( mode, x1, y1, x2, y2, x3, y3 ) | ||
</source> | </source> | ||
− | === | + | === Arguments === |
− | {{ | + | {{param|DrawMode|mode|How to draw the triangle.}} |
− | {{ | + | {{param|number|x1|The position of first point on the x-axis.}} |
− | {{ | + | {{param|number|y1|The position of first point on the y-axis.}} |
− | {{ | + | {{param|number|x2|The position of second point on the x-axis.}} |
− | {{ | + | {{param|number|y2|The position of second point on the y-axis.}} |
− | {{ | + | {{param|number|x3|The position of third point on the x-axis.}} |
− | {{ | + | {{param|number|y3|The position of third point on the y-axis.}} |
− | === | + | === Returns === |
− | + | Nothing. | |
− | == | + | == See Also == |
− | * [[parent::love. | + | * [[parent::love.graphics]] |
[[Category:Functions]] | [[Category:Functions]] | ||
− | {{#set:Description= | + | {{#set:Description=Draws a triangle.}} |
− | == | + | == Other Languages == |
{{i18n|love.graphics.triangle}} | {{i18n|love.graphics.triangle}} |
Revision as of 15:24, 5 January 2011
Draws a triangle.
Function
Synopsis
love.graphics.triangle( mode, x1, y1, x2, y2, x3, y3 )
Arguments
DrawMode mode
- How to draw the triangle.
number x1
- The position of first point on the x-axis.
number y1
- The position of first point on the y-axis.
number x2
- The position of second point on the x-axis.
number y2
- The position of second point on the y-axis.
number x3
- The position of third point on the x-axis.
number y3
- The position of third point on the y-axis.
Returns
Nothing.
See Also
Other Languages
Dansk –
Deutsch –
English –
Español –
Français –
Indonesia –
Italiano –
Lietuviškai –
Magyar –
Nederlands –
Polski –
Português –
Română –
Slovenský –
Suomi –
Svenska –
Türkçe –
Česky –
Ελληνικά –
Български –
Русский –
Српски –
Українська –
עברית –
ไทย –
日本語 –
正體中文 –
简体中文 –
Tiếng Việt –
한국어
More info