An object containing the position and color data for a single pixel in a CanvasTexture.
name | type | description |
---|---|---|
x | number |
The x-coordinate of the pixel. |
y | number |
The y-coordinate of the pixel. |
color | number |
The color of the pixel, not including the alpha channel. |
alpha | number |
The alpha of the pixel, between 0 and 1. |