Difference between revisions of "love.graphics.clear"

m
Line 20: Line 20:
 
* [[parent::love.graphics]]
 
* [[parent::love.graphics]]
 
[[Category:Functions]]
 
[[Category:Functions]]
 +
[[Category:Drawing]]
 
{{#set:Description=Clears the screen to background color.}}
 
{{#set:Description=Clears the screen to background color.}}
 
{{#set:Since=000}}
 
{{#set:Since=000}}
 
== Other Languages ==
 
== Other Languages ==
 
{{i18n|love.graphics.clear}}
 
{{i18n|love.graphics.clear}}

Revision as of 23:51, 28 March 2013

Clears the screen to the background color and restores the default coordinate system.

This function is called automatically before love.draw in the default love.run function. See the example in love.run for a typical use of this function.

Note that the scissor area bounds the cleared region.

Function

Synopsis

love.graphics.clear( )

Arguments

None.

Returns

Nothing.

See Also


Other Languages