Difference between revisions of "love.graphics.triangle"

m
(See Also)
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 +
{{oldin|[[0.9.0]]|090|type=function|text=This function is not supported in that and later versions. Use [[love.graphics.polygon]] instead}}
 
Draws a triangle.
 
Draws a triangle.
 
== Function ==
 
== Function ==
Line 17: Line 18:
 
== See Also ==
 
== See Also ==
 
* [[parent::love.graphics]]
 
* [[parent::love.graphics]]
 +
* [[love.graphics.polygon]]
 
[[Category:Functions]]
 
[[Category:Functions]]
 
[[Sub-Category::Drawing| ]]
 
[[Sub-Category::Drawing| ]]
 
{{#set:Description=Draws a triangle.}}
 
{{#set:Description=Draws a triangle.}}
 
{{#set:Since=000}}
 
{{#set:Since=000}}
 +
 
== Other Languages ==
 
== Other Languages ==
 
{{i18n|love.graphics.triangle}}
 
{{i18n|love.graphics.triangle}}

Latest revision as of 17:26, 8 November 2021

Removed in LÖVE 0.9.0
This function is not supported in that and later versions. Use love.graphics.polygon instead.

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