Table of Contents

RenderTarget:clear

Available since version: Gideros 2013.06

Description:

Clears rendered texture with provided color and opacity

Syntax:

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
  • y: (number) relative y coordinate
  • width: (number) width of the area to clear starting from x coordinate
  • height: (number) height of the area to clear starting from y coordinate