Difference between revisions of "love.graphics.setLineStyle"
(Undo revision 27207 by Darkfrei (talk) The example doesn't add anything. Surely the reader knows how to call a function with a string argument.) (Tag: Undo) |
(→Returns) |
||
Line 10: | Line 10: | ||
=== Returns === | === Returns === | ||
Nothing. | Nothing. | ||
+ | |||
+ | == Example == | ||
+ | Draw lines | ||
+ | |||
+ | <source lang="lua"> | ||
+ | function love.load() | ||
+ | love.graphics.setLineStyle( "rough" ) | ||
+ | love.graphics.setLineWidth( 0.8 ) | ||
+ | end | ||
+ | |||
+ | function love.draw() | ||
+ | love.graphics.line (0,0, 200, 100) | ||
+ | love.graphics.line (0,100, 200, 0) | ||
+ | end | ||
+ | </source> | ||
+ | |||
== See Also == | == See Also == | ||
* [[parent::love.graphics]] | * [[parent::love.graphics]] |
Revision as of 16:04, 14 September 2024
Available since LÖVE 0.3.2 |
This function is not supported in earlier versions. |
Sets the line style.
Function
Synopsis
love.graphics.setLineStyle( style )
Arguments
LineStyle style
- The LineStyle to use. Line styles include
smooth
andrough
.
Returns
Nothing.
Example
Draw lines
function love.load()
love.graphics.setLineStyle( "rough" )
love.graphics.setLineWidth( 0.8 )
end
function love.draw()
love.graphics.line (0,0, 200, 100)
love.graphics.line (0,100, 200, 0)
end
See Also
Other Languages
Dansk –
Deutsch –
English –
Español –
Français –
Indonesia –
Italiano –
Lietuviškai –
Magyar –
Nederlands –
Polski –
Português –
Română –
Slovenský –
Suomi –
Svenska –
Türkçe –
Česky –
Ελληνικά –
Български –
Русский –
Српски –
Українська –
עברית –
ไทย –
日本語 –
正體中文 –
简体中文 –
Tiếng Việt –
한국어
More info