RenderTarget:clear

From GiderosMobile
Revision as of 23:37, 3 December 2019 by MoKaLux (talk | contribs)


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