Difference between revisions of "RenderTarget:clear"

From GiderosMobile
Line 1: Line 1:
 
__NOTOC__
 
__NOTOC__
 
'''<translate>Available since</translate>:''' Gideros 2013.06<br/>
 
'''<translate>Available since</translate>:''' Gideros 2013.06<br/>
 +
'''<translate>Class</translate>:''' [[Special:MyLanguage/RenderTarget|RenderTarget]]<br/>
 
=== <translate>Description</translate> ===
 
=== <translate>Description</translate> ===
 
<translate>Clears rendered texture with provided color and opacity</translate>
 
<translate>Clears rendered texture with provided color and opacity</translate>

Revision as of 10:28, 24 August 2018

Available since: Gideros 2013.06
Class: RenderTarget

Description

Clears rendered texture with provided color and opacity

 RenderTarget:clear(color,alpha,x,y,width,height)

Parameters

color: (number) color using which to clear the texture
alpha: (number) transparency using which to clear the texture
x: (number) relative x coordinate optional
y: (number) relative y coordinate optional
width: (number) width of the area to clear starting from x coordinate optional
height: (number) height of the area to clear starting from y coordinate optional