{{newin|[[0.3.2]]|032|type=function}}
Gets the current line width.
== Function ==
=== Synopsis ===
<source lang="lua">
width = love.graphics.getLineWidth( )
</source>
=== Arguments ===
None.
=== Returns ===
{{param|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;

<source lang="lua">
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
</source>

== See Also ==
* [[parent::love.graphics]]
* [[love.graphics.setLineWidth]]
[[Category:Functions]]
{{#set:Description=Gets the current line width.}}
{{#set:Sub-Category=State}}

== Other Languages ==
{{i18n|love.graphics.getLineWidth}}