Phaser API Documentation

  Version: 
fill(rgb, [alpha], [x], [y], [width], [height])

Description:

Fills the Render Texture with the given color.

Parameters:

name type arguments Default description
rgb number

The color to fill the Render Texture with.

alpha number <optional> 1

The alpha value used by the fill.

x number <optional> 0

The left coordinate of the fill rectangle.

y number <optional> 0

The top coordinate of the fill rectangle.

width number <optional> this.frame.cutWidth

The width of the fill rectangle.

height number <optional> this.frame.cutHeight

The height of the fill rectangle.

Returns:
Description:

This Render Texture instance.