Difference between revisions of "love.graphics.setPointSize"

(Add an example)
m
Line 10: Line 10:
 
Nothing.
 
Nothing.
 
== Examples ==
 
== Examples ==
Increase the point size by 1.
+
Increase the point size by 1, by using [[love.graphics.getPointSize]].
 
<source lang="lua">
 
<source lang="lua">
 
local s = love.graphics.getPointSize() + 1
 
local s = love.graphics.getPointSize() + 1
Line 20: Line 20:
 
* [[love.graphics.setPoint]]
 
* [[love.graphics.setPoint]]
 
* [[love.graphics.setPointStyle]]
 
* [[love.graphics.setPointStyle]]
 +
* [[love.graphics.getPointSize]]
 
[[Category:Functions]]
 
[[Category:Functions]]
 
{{#set:Description=Sets the point size.}}
 
{{#set:Description=Sets the point size.}}

Revision as of 17:44, 27 September 2011

Sets the point size.

Function

Synopsis

love.graphics.setPointSize( size )

Arguments

number size
The new point size.

Returns

Nothing.

Examples

Increase the point size by 1, by using love.graphics.getPointSize.

local s = love.graphics.getPointSize() + 1
love.graphics.setPointSize(s)

See Also


Other Languages