Phaser API Documentation

  Version: 
fillRect(x, y, width, height)

Description:

Fill a rectangle with the given position and size.

Parameters:

name type description
x number

The x coordinate of the top-left of the rectangle.

y number

The y coordinate of the top-left of the rectangle.

width number

The width of the rectangle.

height number

The height of the rectangle.

Returns:
Description:

This Game Object.

Since: 3.0.0