Difference between revisions of "RenderTarget:clear"

From GiderosMobile
(Created page with "__NOTOC__ '''Available since:''' Gideros 2013.06<br/> === Description === Clears rendered texture with provided color and opacity <source lang="lua"> = RenderTarget:clear(colo...")
 
Line 4: Line 4:
 
Clears rendered texture with provided color and opacity
 
Clears rendered texture with provided color and opacity
 
<source lang="lua">
 
<source lang="lua">
= RenderTarget:clear(coloralphaxywidthheight,)
+
RenderTarget:clear(color,alpha,x,y,width,height)
 
</source>
 
</source>
'''color:''' (number) color using which to clear the texture ''''''<br/>
+
'''color''': (number) color using which to clear the texture ''''''<br/>
'''alpha:''' (number) transparency using which to clear the texture ''''''<br/>
+
'''alpha''': (number) transparency using which to clear the texture ''''''<br/>
'''x:''' (number) relative x coordinate '''optional'''<br/>
+
'''x''': (number) relative x coordinate '''optional'''<br/>
'''y:''' (number) relative y coordinate '''optional'''<br/>
+
'''y''': (number) relative y coordinate '''optional'''<br/>
'''width:''' (number) width of the area to clear starting from x coordinate '''optional'''<br/>
+
'''width''': (number) width of the area to clear starting from x coordinate '''optional'''<br/>
'''height:''' (number) height of the area to clear starting from y coordinate '''optional'''<br/>
+
'''height''': (number) height of the area to clear starting from y coordinate '''optional'''<br/>

Revision as of 10:17, 23 August 2018

Available since: Gideros 2013.06

Description

Clears rendered texture with provided color and opacity

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

'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