Phaser API Documentation

  Version: 
fillRoundedRect(x, y, width, height, [radius])

Description:

Fill a rounded rectangle with the given position, size and radius.

Parameters:

name type arguments Default 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.

radius number | Phaser.Types.GameObjects.Graphics.RoundedRectRadius <optional> 20

The corner radius; It can also be an object to specify different radii for corners.

Returns:
Description:

This Game Object.

Since: 3.11.0