love.graphics.triangle

love.graphics.triangle

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


doc_love
2017-03-21 15:48:35
Comments
Leave a Comment

Please login to continue.