Difference between revisions of "love.graphics.setLine"

m (1 revision: Imported docs from potato.)
 
(10 intermediate revisions by 6 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.
 
== Function ==
 
== Function ==
 
=== Synopsis ===
 
=== Synopsis ===
Line 11: Line 11:
 
=== Returns ===
 
=== Returns ===
 
Nothing.
 
Nothing.
 +
== Example ==
 +
<source lang="lua">
 +
love.graphics.setLine(2, "smooth")
 +
love.graphics.line(15, 25, 69, 89)
 +
</source>
 
== See Also ==
 
== See Also ==
 
* [[parent::love.graphics]]
 
* [[parent::love.graphics]]
 +
* [[love.graphics.setLineWidth]]
 +
* [[love.graphics.setLineStyle]]
 
[[Category:Functions]]
 
[[Category:Functions]]
{{#set:Description=}}
+
{{#set:Description=Sets the line width and style.}}
 +
{{#set:Since=000}}
 +
{{#set:Sub-Category=State}}
 +
== Other Languages ==
 +
{{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