Difference between revisions of "love.graphics.getPointStyle"

m
m (Fix links.)
Line 1: Line 1:
Gets the current [[love.graphics.setPoint|point]] style.
+
Gets the current [[love.graphics.point|point]] style.
 
== Function ==
 
== Function ==
 
=== Synopsis ===
 
=== Synopsis ===
Line 10: Line 10:
 
{{param|PointStyle|style|The current point style.}}
 
{{param|PointStyle|style|The current point style.}}
 
== Examples ==
 
== Examples ==
Toggle between [[love.graphics.setPoint|point styles]] with the help of [[love.graphics.setPointStyle]].
+
Toggle between [[PointStyle|point styles]] with the help of [[love.graphics.setPointStyle]].
 
<source lang="lua">
 
<source lang="lua">
 
if love.graphics.getPointStyle() == "rough" then
 
if love.graphics.getPointStyle() == "rough" then

Revision as of 12:49, 5 November 2014

Gets the current point style.

Function

Synopsis

style = love.graphics.getPointStyle( )

Arguments

None.

Returns

PointStyle style
The current point style.

Examples

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

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

See Also


Other Languages