pub type Color = Srgba;
👎Deprecated: Renamed to Srgba
Expand description
Represents a color composed of a red, green and blue component in the sRGB color space. In addition, the alpha value determines the how transparent the color is (0 is fully transparent and 255 is fully opaque).
Aliased Type§
struct Color {
pub r: u8,
pub g: u8,
pub b: u8,
pub a: u8,
}
Fields§
§r: u8
Red component
g: u8
Green component
b: u8
Blue component
a: u8
Alpha component