@rgb
This class encapsulates color information. This is the class that is used to instantiate colors written using color instructions.
This class encapsulates color information. This is the class that is used to instantiate colors written using color instructions.
//#0 is converted to:
@rgb {
red: 0;
green: 0;
blue: 0;
}
//#FFF is converted to:
@rgb {
red: 1.0;
green: 1.0;
blue: 1.0;
}
Type: var.f32
The red component value of the color. Valid values are between 0.0 and 1.0.
theColor.red: 0.5;
Type: var.f32
The green component value of the color. Valid values are between 0.0 and 1.0.
theColor.green: 0.5;
Type: var.f32
The blue component value of the color. Valid values are between 0.0 and 1.0.
theColor.blue: 0.5;
Type: var.f32
The alpha component value of the color. Valid values are between 0.0 and 1.0.
To gain a better understanding of this class, it is recommended to look at the source code of the following file: