Difference between revisions of "love.graphics.setPoint"

(Add an example)
Line 10: Line 10:
 
=== Returns ===
 
=== Returns ===
 
Nothing.
 
Nothing.
 +
== Examples ==
 +
Increase the point size by 1 and set it to smooth.
 +
<source lang="lua">
 +
local s = love.graphics.getPointSize() + 1
 +
love.graphics.setPoint(s, "smooth")
 +
</source>
 
== See Also ==
 
== See Also ==
 
* [[parent::love.graphics]]
 
* [[parent::love.graphics]]

Revision as of 17:37, 27 September 2011

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