Difference between revisions of "RenderTarget:clear"
From GiderosMobile
(remove language stuff) |
|||
Line 1: | Line 1: | ||
__NOTOC__ | __NOTOC__ | ||
− | + | '''Available since:''' Gideros 2013.06<br/> | |
− | ''' | + | '''Class:''' [[RenderTarget]]<br/> |
− | ''' | + | |
− | === | + | === Description === |
− | + | Clears rendered texture with provided color and opacity. | |
<source lang="lua"> | <source lang="lua"> | ||
− | + | RenderTarget:clear(color,alpha,x,y,width,height) | |
</source> | </source> | ||
− | === | + | |
− | '''color''': (number) | + | === Parameters === |
− | '''alpha''': (number) | + | '''color''': (number) color using which to clear the texture<br/> |
− | '''x''': (number) | + | '''alpha''': (number) transparency using which to clear the texture<br/> |
− | '''y''': (number) | + | '''x''': (number) relative x coordinate '''optional'''<br/> |
− | '''width''': (number) | + | '''y''': (number) relative y coordinate '''optional'''<br/> |
− | '''height''': (number) | + | '''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/> | ||
{{RenderTarget}} | {{RenderTarget}} |
Revision as of 02:13, 24 December 2020
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