Difference between revisions of "love.graphics.getPointStyle"

(Add an example, see also)
m
Line 25: Line 25:
 
{{#set:Description=Gets the current point style.}}
 
{{#set:Description=Gets the current point style.}}
 
{{#set:Since=000}}
 
{{#set:Since=000}}
 +
{{#set:Sub-Category=State}}
 
== Other Languages ==
 
== Other Languages ==
 
{{i18n|love.graphics.getPointStyle}}
 
{{i18n|love.graphics.getPointStyle}}

Revision as of 00:55, 29 March 2013

Gets the current point style.

Function

Synopsis

style = love.graphics.getPointStyle( )

Arguments

None.

Returns

PointStyle style
The current point style.

Examples

Toggle between point styles with the help of love.graphics.setPointStyle.

if love.graphics.getPointStyle() == "rough" then
   love.graphics.setPointStyle("smooth")
else
   love.graphics.setPointStyle("rough")
end

See Also


Other Languages