Difference between revisions of "love.graphics.setLine"

 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 +
{{oldin|[[0.9.0]]|090|type=function|text=Use [[love.graphics.setLineWidth]] and [[love.graphics.setLineStyle]]}}
 
Sets the line width and style.
 
Sets the line width and style.
 
== Function ==
 
== Function ==
Line 13: Line 14:
 
<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 ==
Line 21: Line 23:
 
{{#set:Description=Sets the line width and style.}}
 
{{#set:Description=Sets the line width and style.}}
 
{{#set:Since=000}}
 
{{#set:Since=000}}
 +
{{#set:Sub-Category=State}}
 
== Other Languages ==
 
== Other Languages ==
 
{{i18n|love.graphics.setLine}}
 
{{i18n|love.graphics.setLine}}

Latest revision as of 02:33, 17 June 2013

Removed in LÖVE 0.9.0
Use love.graphics.setLineWidth and love.graphics.setLineStyle.

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