fill(r, g, b, a) → {Phaser.BitmapData}
Fills the BitmapData with the given color.
Parameters
Name | Type | Argument | Default | Description |
---|---|---|---|---|
r | number | The red color value, between 0 and 0xFF (255). | ||
g | number | The green color value, between 0 and 0xFF (255). | ||
b | number | The blue color value, between 0 and 0xFF (255). | ||
a | number | <optional> | 1 | The alpha color value, between 0 and 1. |
Returns
This BitmapData object for method chaining.
- Source code: gameobjects/BitmapData.js (Line 494)
Please login to continue.