pub struct CMYKColor<T> {
pub c: T,
pub m: T,
pub y: T,
pub k: T,
}
Expand description
A color in the CMYK Color Space.
Fields§
§c: T
Cyan is a percentage value in [0f32, 1f32]
.
0% means no cyan and 100% is the maximum amount of cyan.
m: T
Magenta is a percentage value in [0f32, 1f32]
.
0% means no magenta and 100% is the maximum amount of magenta.
y: T
Yellow is a percentage value in [0f32, 1f32]
.
0% means no yellow and 100% is the maximum amount of yellow.
k: T
Black is a percentage value in [0f32, 1f32]
.
0% means no key and 100% is the maximum amount of key.
Trait Implementations§
impl<T> Copy for CMYKColor<T>where
T: Copy,
impl<T> StructuralPartialEq for CMYKColor<T>
Auto Trait Implementations§
impl<T> Freeze for CMYKColor<T>where
T: Freeze,
impl<T> RefUnwindSafe for CMYKColor<T>where
T: RefUnwindSafe,
impl<T> Send for CMYKColor<T>where
T: Send,
impl<T> Sync for CMYKColor<T>where
T: Sync,
impl<T> Unpin for CMYKColor<T>where
T: Unpin,
impl<T> UnwindSafe for CMYKColor<T>where
T: UnwindSafe,
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