Difference between revisions of "love.graphics.setPointStyle"

m (Add more see alsos.)
(Add an example)
Line 9: Line 9:
 
=== Returns ===
 
=== Returns ===
 
Nothing.
 
Nothing.
 +
== Examples ==
 +
Toggle between [[love.graphics.setPoint|point styles]] with the help of [[love.graphics.getPointStyle]].
 +
<source lang="lua">
 +
if love.graphics.getPointStyle() == "rough" then
 +
  love.graphics.setPointStyle("smooth")
 +
else
 +
  love.graphics.setPointStyle("rough")
 +
end
 +
</source>
 
== See Also ==
 
== See Also ==
 
* [[parent::love.graphics]]
 
* [[parent::love.graphics]]
Line 14: Line 23:
 
* [[love.graphics.setPoint]]
 
* [[love.graphics.setPoint]]
 
* [[love.graphics.setPointSize]]
 
* [[love.graphics.setPointSize]]
 +
* [[love.graphics.getPointStyle]]
 
[[Category:Functions]]
 
[[Category:Functions]]
 
{{#set:Description=Sets the point style.}}
 
{{#set:Description=Sets the point style.}}

Revision as of 17:41, 27 September 2011

Sets the point style.

Function

Synopsis

love.graphics.setPointStyle( style )

Arguments

PointStyle style
The new point style.

Returns

Nothing.

Examples

Toggle between point styles with the help of love.graphics.getPointStyle.

if love.graphics.getPointStyle() == "rough" then
   love.graphics.setPointStyle("smooth")
else
   love.graphics.setPointStyle("rough")
end

See Also


Other Languages