Difference between revisions of "love.graphics.setPoint"

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

Revision as of 01:03, 29 March 2013

Sets the point size and style.

Function

Synopsis

love.graphics.setPoint( size, style )

Arguments

number size
The new point size.
PointStyle style
The new point style.

Returns

Nothing.

Examples

Increase the point size by 1 and set it to smooth.

local s = love.graphics.getPointSize() + 1
love.graphics.setPoint(s, "smooth")

See Also


Other Languages