Difference between revisions of "love.graphics.line"

m (1 revision: Imported docs from potato.)
Line 1: Line 1:
  
 
+
Draws a line between two points.
 
== Function ==
 
== Function ==
 
=== Synopsis ===
 
=== Synopsis ===
Line 16: Line 16:
 
* [[parent::love.graphics]]
 
* [[parent::love.graphics]]
 
[[Category:Functions]]
 
[[Category:Functions]]
{{#set:Description=}}
+
{{#set:Description=Draws a line between two points.}}

Revision as of 16:17, 14 February 2010

Draws a line between two 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.

Returns

Nothing.

See Also