Difference between revisions of "love.graphics.point"

m (1 revision: Importing from potato (again).)
m (made a note about the pixel grid)
Line 1: Line 1:
 
 
Draws a point.
 
Draws a point.
 
== Function ==
 
== Function ==
Line 11: Line 10:
 
=== Returns ===
 
=== Returns ===
 
Nothing.
 
Nothing.
 +
=== Notes ===
 +
The pixel grid is actually offset to the center of each pixel. So to get clean pixels drawn use 0.5 + integer increments.
 
== See Also ==
 
== See Also ==
 
* [[parent::love.graphics]]
 
* [[parent::love.graphics]]
 
[[Category:Functions]]
 
[[Category:Functions]]
 
{{#set:Description=Draws a point.}}
 
{{#set:Description=Draws a point.}}

Revision as of 23:20, 25 February 2010

Draws a point.

Function

Synopsis

love.graphics.point( x, y )

Arguments

number x
The position on the x-axis.
number y
The position on the y-axis.

Returns

Nothing.

Notes

The pixel grid is actually offset to the center of each pixel. So to get clean pixels drawn use 0.5 + integer increments.

See Also