Difference between revisions of "RenderTarget:clear"

From GiderosMobile
m
m (Text replacement - "<source" to "<syntaxhighlight")
Line 5: Line 5:
 
=== Description ===
 
=== Description ===
 
Clears rendered texture with provided color and opacity.
 
Clears rendered texture with provided color and opacity.
<source lang="lua">
+
<syntaxhighlight lang="lua">
 
RenderTarget:clear(color,alpha,x,y,width,height)
 
RenderTarget:clear(color,alpha,x,y,width,height)
 
</source>
 
</source>

Revision as of 15:30, 13 July 2023

Available since: Gideros 2013.06
Class: RenderTarget

Description

Clears rendered texture with provided color and opacity. <syntaxhighlight lang="lua"> RenderTarget:clear(color,alpha,x,y,width,height) </source>

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