BBRGBA(int r, int g, int b, double a)
r : int
g : int
b : int
a : double
setRGBA(int r, int g, int b, double a) : void
toFillStyle() : String
BBRGBA(int r, int g, int b, double a)
Constructs a BBRGBA object with the given r, g, b, and a values.
r : int
The red component of the color between 0 and 255.
g : int
The green component of the color between 0 and 255.
b : int
The blue component of the color between 0 and 255.
a : double
The alpha component of the color between 0.0 and 1.0.
setRGBA(int r, int g, int b, double a) : void
Sets the r, g, b, and a components of the color. This is a shortcut instead of setting them each individually.
toFillStyle() : String
Returns the color in the format "rgba(r, g, b, a)" suitable for setting a CanvasRenderingContext2D's fillStyle property.