Difference between revisions of "love.graphics.setLine"

Line 13: Line 13:
 
<source lang="lua">
 
<source lang="lua">
 
love.graphics.setLine(2, "smooth")
 
love.graphics.setLine(2, "smooth")
 +
love.graphics.line(15, 25, 69, 89);
 
</source>
 
</source>
 
== See Also ==
 
== See Also ==

Revision as of 19:36, 31 May 2012

Sets the line width and style.

Function

Synopsis

love.graphics.setLine( width, style )

Arguments

number width
The width of the line.
LineStyle style ("smooth")
The LineStyle to use.

Returns

Nothing.

Example

love.graphics.setLine(2, "smooth")
love.graphics.line(15, 25, 69, 89);

See Also


Other Languages