Construct a new Color
object from the given RGBA values. All values must be in the range
[0.0,1.0].
The amount of red in the color.
The amount of green in the color.
The amount of blue in the color.
Alpha (opacity). Defaults to 1.0
.
The value of the color's alpha component, representing its opacity. Use values less than 1.0 for translucency.
The value of the color's blue component.
The value of the color's green component.
The X11 name of the color for known colors, or else its HTML representation, e.g. #FF8080FF
.
The value of the color's red component.
Chartreuse. The best color with the best name.
Pink. The color of eaty pigs. *MUNCH*
Stanky Bean. The first color created and named by an AI.
Gets a new Color
object with the same values as this one.
Gets a new Color
with the same RGB as this one but with its alpha multiplied by the given
factor. Useful for implementing transitions.
Gets a Color
corresponding to the specified color name which can be either HTML notation
(e.g. #7FFF00
) or an X11 color name such as chartreuse
(case insensitive).
Generated using TypeDoc
Represents an RGBA color value for use in rendering operations.