Difference between revisions of "love.graphics.setPointStyle"

(Add an example)
m
Line 27: Line 27:
 
{{#set:Description=Sets the point style.}}
 
{{#set:Description=Sets the point style.}}
 
{{#set:Since=000}}
 
{{#set:Since=000}}
 +
{{#set:Sub-Category=State}}
 
== Other Languages ==
 
== Other Languages ==
 
{{i18n|love.graphics.setPointStyle}}
 
{{i18n|love.graphics.setPointStyle}}

Revision as of 01:04, 29 March 2013

Sets the point style.

Function

Synopsis

love.graphics.setPointStyle( style )

Arguments

PointStyle style
The new point style.

Returns

Nothing.

Examples

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

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

See Also


Other Languages