new Pixel(r, g, b, a)
Represents a single pixel of image data. All components have a minimum value
of 0 and a maximum value of 255.
Parameters:
Name | Type | Description |
---|---|---|
r |
Number | The red component of this pixel. |
g |
Number | The green component of this pixel. |
b |
Number | The blue component of this pixel. |
a |
Number | The alpha component of this pixel. |
Members
alpha
The alpha component of this pixel, where 0 is the minimum value,
and 255 is the maximum.
blue
The blue component of this pixel, where 0 is the minimum value,
and 255 is the maximum.
green
The green component of this pixel, where 0 is the minimum value,
and 255 is the maximum.
red
The red component of this pixel, where 0 is the minimum value,
and 255 is the maximum.