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|Как будет нарисован треугольник.}}
+
{{param|DrawMode|mode|How to draw the triangle.}}
{{param_(Русский)|number|x1|X координата первой точки.}}
+
{{param|number|x1|The position of first point on the x-axis.}}
{{param_(Русский)|number|y1|Y координата первой точки.}}
+
{{param|number|y1|The position of first point on the y-axis.}}
{{param_(Русский)|number|x2|X координата второй точки.}}
+
{{param|number|x2|The position of second point on the x-axis.}}
{{param_(Русский)|number|y2|Y координата второй точки.}}
+
{{param|number|y2|The position of second point on the y-axis.}}
{{param_(Русский)|number|x3|X координата третьей точки.}}
+
{{param|number|x3|The position of third point on the x-axis.}}
{{param_(Русский)|number|y3|Y координата третьей точки.}}
+
{{param|number|y3|The position of third point on the y-axis.}}
=== Возвращает ===
+
=== Returns ===
Ничего.
+
Nothing.
== Смотрите также ==
+
== See Also ==
* [[parent::love.graphics_(Русский)]]
+
* [[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