Value of alpha channel [0-255]
Value of blue channel [0-255]
Value of green channel [0-255]
Compute a highlighted version of this Color.
New Color object
Value of red channel [0-255]
Creates a new color that is equal to this but with a certain alpha value
Value of alpha channel [0-255]
New Color object
Creates a new color that is equal to this but with a certain blue value
Value of blue channel [0-255]
New Color object
Creates a new color that is equal to this but with a certain green value
Value of green channel [0-255]
New Color object
Creates a new color that is equal to this but with a certain red value
Value of red channel [0-255]
New Color object
Unlike other types in Immutable.js, the Record()
function creates a new
Record Factory, which is a function that creates Record instances.
See above for examples of using Record()
.
Note: Record
is a factory function and not a class, and does not use the
new
keyword during construction.
Class for specifying a color.
Instances of Color are immutable, meaning that its setters don't modify the object, but instead return a completely new modified object.
Creation of Colors should be done with Factories, which affect various formats:
Watch out though, the color information is always stored in RGBA format with channels ranging [0, 255], regardless of how the information is supplied when created !