Struct colstodian::basic_encodings::LinearSrgb
source · pub struct LinearSrgb;
Expand description
The linear form of the sRGB color encoding standard.
This is a moderately rare way to specify color values.
If you have three f32s which are not directly related to the u8 form, or you otherwise know should be
“linear rgb” values, then this is the encoding you have. If you instead have four values with an alpha
component where the alpha component varies independently of the color components, you have LinearSrgbA
values.
If you have four values with an alpha component and the rgb components are modified directly when the alpha component
changes as well, you have LinearSrgbAPremultiplied
values.
Trait Implementations§
source§impl ColorEncoding for LinearSrgb
impl ColorEncoding for LinearSrgb
§type ComponentStruct = Rgb<f32>
type ComponentStruct = Rgb<f32>
The ‘bag of components’ this color encoding uses. Read more
§type LinearSpace = Srgb
type LinearSpace = Srgb
The
LinearColorSpace
used by this encoding. Read moresource§impl ConvertFrom<LinearSrgb> for LinearSrgbA
impl ConvertFrom<LinearSrgb> for LinearSrgbA
source§impl ConvertFrom<LinearSrgb> for Oklab
impl ConvertFrom<LinearSrgb> for Oklab
source§impl ConvertFrom<LinearSrgb> for SrgbAF32
impl ConvertFrom<LinearSrgb> for SrgbAF32
source§impl ConvertFrom<LinearSrgb> for SrgbAU8
impl ConvertFrom<LinearSrgb> for SrgbAU8
source§impl ConvertFrom<LinearSrgb> for SrgbAU8Premultiplied
impl ConvertFrom<LinearSrgb> for SrgbAU8Premultiplied
source§impl ConvertFrom<LinearSrgb> for SrgbF32
impl ConvertFrom<LinearSrgb> for SrgbF32
source§impl ConvertFrom<LinearSrgb> for SrgbU8
impl ConvertFrom<LinearSrgb> for SrgbU8
source§impl ConvertFrom<LinearSrgbA> for LinearSrgb
impl ConvertFrom<LinearSrgbA> for LinearSrgb
source§impl ConvertFrom<Oklab> for LinearSrgb
impl ConvertFrom<Oklab> for LinearSrgb
source§impl ConvertFrom<SrgbAF32> for LinearSrgb
impl ConvertFrom<SrgbAF32> for LinearSrgb
source§impl ConvertFrom<SrgbAU8> for LinearSrgb
impl ConvertFrom<SrgbAU8> for LinearSrgb
source§impl ConvertFrom<SrgbAU8Premultiplied> for LinearSrgb
impl ConvertFrom<SrgbAU8Premultiplied> for LinearSrgb
source§impl ConvertFrom<SrgbF32> for LinearSrgb
impl ConvertFrom<SrgbF32> for LinearSrgb
source§impl ConvertFrom<SrgbU8> for LinearSrgb
impl ConvertFrom<SrgbU8> for LinearSrgb
impl WorkingEncoding for LinearSrgb
Auto Trait Implementations§
impl RefUnwindSafe for LinearSrgb
impl Send for LinearSrgb
impl Sync for LinearSrgb
impl Unpin for LinearSrgb
impl UnwindSafe for LinearSrgb
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more