Type Alias cosmic::cosmic_theme::palette::LinSrgba
source · pub type LinSrgba<T = f32> = Alpha<Rgb<Linear<Srgb>, T>, T>;
Expand description
Linear sRGB with an alpha component.
You probably want Srgba
if you are looking for an input or output format
(or “just RGB”). This is the linear version of sRGBA, which is what you
would usually convert to before working with the color.
See Rgb
, Rgba
and Alpha
for more details on how to
create a value and use it.
Aliased Type§
struct LinSrgba<T = f32> {
pub color: Rgb<Linear<Srgb>, T>,
pub alpha: T,
}
Fields§
§color: Rgb<Linear<Srgb>, T>
The color.
alpha: T
The transparency component. 0.0 (or 0u8) is fully transparent and 1.0 (or 255u8) is fully opaque.