Phaser API Documentation

batchFillRect(x, y, width, height, currentMatrix, parentMatrix)


Pushes a filled rectangle into the vertex batch.

Rectangle factors in the given transform matrices before adding to the batch.


name type description
x number

Horizontal top left coordinate of the rectangle.

y number

Vertical top left coordinate of the rectangle.

width number

Width of the rectangle.

height number

Height of the rectangle.

currentMatrix Phaser.GameObjects.Components.TransformMatrix

The current transform.

parentMatrix Phaser.GameObjects.Components.TransformMatrix

The parent transform.

Since: 3.55.0