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...") |
m (Text replacement - "</source>" to "</syntaxhighlight>") |
||
| (10 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
__NOTOC__ | __NOTOC__ | ||
'''Available since:''' Gideros 2013.06<br/> | '''Available since:''' Gideros 2013.06<br/> | ||
| + | '''Class:''' [[RenderTarget]]<br/> | ||
| + | |||
=== Description === | === Description === | ||
| − | Clears rendered texture with provided color and opacity | + | Clears rendered texture with provided color and opacity. |
| − | < | + | <syntaxhighlight lang="lua"> |
| − | + | RenderTarget:clear(color,alpha,x,y,width,height) | |
| − | </ | + | </syntaxhighlight> |
| − | '''color | + | |
| − | '''alpha | + | === Parameters === |
| − | '''x | + | '''color''': (number) color used to clear the texture<br/> |
| − | '''y | + | '''alpha''': (number) transparency used to clear the texture<br/> |
| − | '''width | + | '''x''': (number) relative x coordinate '''optional'''<br/> |
| − | '''height | + | '''y''': (number) relative y 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/> | ||
| + | |||
| + | {{RenderTarget}} | ||
Latest revision as of 14:32, 13 July 2023
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 used to clear the texture
alpha: (number) transparency used 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