Phaser API Documentation

  Version: 
clearFrame(target, [clearAlpha])

Description:

Clears the given Render Target.

Parameters:

name type arguments Default description
target Phaser.Renderer.WebGL.RenderTarget

The Render Target to clear.

clearAlpha boolean <optional> true

Clear the alpha channel when running gl.clear on the target?

Examples: