Difference between revisions of "love.graphics.point"

m (made a note about the pixel grid)
(Moved notes from h3 to h2.)
Line 10: Line 10:
 
=== Returns ===
 
=== Returns ===
 
Nothing.
 
Nothing.
=== Notes ===
+
== Notes ==
 
The pixel grid is actually offset to the center of each pixel. So to get clean pixels drawn use 0.5 + integer increments.
 
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 12:16, 27 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