An object containing the position and color data for a single pixel in a CanvasTexture.
name | type | arguments | Default | description |
---|---|---|---|---|
alpha | number | <optional> | 1 |
The alpha value used by the stamp. |
tint | number | <optional> | 0xffffff |
The tint color value used by the stamp. WebGL only. |
angle | number | <optional> | 0 |
The angle of the stamp in degrees. Rotation takes place around its origin. |
rotation | number | <optional> | 0 |
The rotation of the stamp in radians. Rotation takes place around its origin. |
scale | number | <optional> | 1 |
Sets both the horizontal and vertical scale of the stamp with a single value. |
scaleX | number | <optional> | 1 |
Set the horizontal scale of the stamp. Overrides the scale property, if provided. |
scaleY | number | <optional> | 1 |
Set the vertical scale of the stamp. Overrides the scale property, if provided. |
originX | number | <optional> | 0.5 |
The horizontal origin of the stamp. 0 is the left, 0.5 is the center and 1 is the right. |
originY | number | <optional> | 0.5 |
The vertical origin of the stamp. 0 is the top, 0.5 is the center and 1 is the bottom. |
blendMode | string | number | Phaser.BlendModes | <optional> | 0 |
The blend mode used when drawing the stamp. Defaults to 0 (normal). |
erase | boolean | <optional> | false |
Erase this stamp from the texture? |
skipBatch | boolean | <optional> | false |
Skip beginning and ending a batch with this call. Use if this is part of a bigger batched draw. |