Type Alias nannou_core::color::Gray
source · pub type Gray<S = DefaultScalar> = Srgb<S>;
Expand description
A color represented as gray intensity.
This type is an alias for the Srgb
type, a type that represents the sRGB color space.
If you are looking for more advanced control over the RGB space and component type, please see
the palette
crate’s generic Rgb
type.
Aliased Type§
struct Gray<S = DefaultScalar> {
pub red: S,
pub green: S,
pub blue: S,
pub standard: PhantomData<Srgb>,
}
Fields§
§red: S
The amount of red light, where 0.0 is no red light and 1.0f (or 255u8) is the highest displayable amount.
green: S
The amount of green light, where 0.0 is no green light and 1.0f (or 255u8) is the highest displayable amount.
blue: S
The amount of blue light, where 0.0 is no blue light and 1.0f (or 255u8) is the highest displayable amount.
standard: PhantomData<Srgb>
The kind of RGB standard. sRGB is the default.