Difference between revisions of "love.graphics.getLineWidth"
m (Add PrettySince field.) |
m |
||
Line 24: | Line 24: | ||
[[Category:Functions]] | [[Category:Functions]] | ||
{{#set:Description=Gets the current line width.}} | {{#set:Description=Gets the current line width.}} | ||
− | {{#set:Since= | + | {{#set:Since=032}} |
{{#set:PrettySince=0.3.2}} | {{#set:PrettySince=0.3.2}} | ||
{{#set:Sub-Category=State}} | {{#set:Sub-Category=State}} | ||
== Other Languages == | == Other Languages == | ||
{{i18n|love.graphics.getLineWidth}} | {{i18n|love.graphics.getLineWidth}} |
Revision as of 05:00, 7 September 2016
Gets the current line width.
Function
Synopsis
width = love.graphics.getLineWidth( )
Arguments
None.
Returns
number width
- The current line width.
Notes
This function does not work in 0.8.0, but has been fixed in version 0.9.0. Use the following snippet to circumvent this in 0.8.0;
love.graphics._getLineWidth = love.graphics.getLineWidth
love.graphics._setLineWidth = love.graphics.setLineWidth
function love.graphics.getLineWidth() return love.graphics.varlinewidth or 1 end
function love.graphics.setLineWidth(w) love.graphics.varlinewidth = w; return love.graphics._setLineWidth(w) 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