Difference between revisions of "love.graphics.line"

(added polyline info)
m
Line 27: Line 27:
 
[[Category:Functions]]
 
[[Category:Functions]]
 
{{#set:Description=Draws lines between points.}}
 
{{#set:Description=Draws lines between points.}}
 +
== Other Languages ==
 +
{{i18n|love.graphics.line}}

Revision as of 20:15, 18 November 2010

Draws lines between points.

Function

Synopsis

love.graphics.line( x1, y1, x2, y2, ... )

Arguments

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 ...
You can continue passing point positions to draw a polyline.

Returns

Nothing.

Function

Synopsis

love.graphics.line( points )

Arguments

table points
A table of point positions, as described above.

Returns

Nothing.

See Also

Other Languages