pub struct Color<S: ColorSpace, E: Encoding> {
pub ch: [Q0_16; 3],
/* private fields */
}Expand description
Three Q0_16 channels tagged with space and encoding.
Fields§
§ch: [Q0_16; 3]Channel values.
Implementations§
Source§impl<S: ColorSpace, E: Encoding> Color<S, E>
impl<S: ColorSpace, E: Encoding> Color<S, E>
Source§impl<S: ColorSpace> Color<S, Linear>
impl<S: ColorSpace> Color<S, Linear>
Source§impl<S: ColorSpace> Color<S, Encoded>
impl<S: ColorSpace> Color<S, Encoded>
Source§impl<S: ColorSpace + Perceptual> Color<S, Encoded>
impl<S: ColorSpace + Perceptual> Color<S, Encoded>
Sourcepub const fn lerp(self, other: Self, t: Q0_16) -> Self
pub const fn lerp(self, other: Self, t: Q0_16) -> Self
Interpolate encoded values only when the space is Perceptual.
Trait Implementations§
impl<S: ColorSpace, E: Encoding> Copy for Color<S, E>
impl<S: ColorSpace, E: Encoding> Eq for Color<S, E>
Auto Trait Implementations§
impl<S, E> Freeze for Color<S, E>
impl<S, E> RefUnwindSafe for Color<S, E>
impl<S, E> Send for Color<S, E>
impl<S, E> Sync for Color<S, E>
impl<S, E> Unpin for Color<S, E>
impl<S, E> UnsafeUnpin for Color<S, E>
impl<S, E> UnwindSafe for Color<S, E>
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