Fills this Dynamic Texture with the given color.
By default it will fill the entire texture, however you can set it to fill a specific rectangular area by using the x, y, width and height arguments.
The color should be given in hex format, i.e. 0xff0000 for red, 0x00ff00 for green, etc.
name | type | arguments | Default | description |
---|---|---|---|---|
rgb | number |
The color to fill this Dynamic Texture with, such as 0xff0000 for red. |
||
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.width |
The width of the fill rectangle. |
height | number | <optional> | this.height |
The height of the fill rectangle. |
This Dynamic Texture instance.