pub enum ColorMode {
Normal,
Gray,
Alpha,
Forced(ColorScheme),
}Expand description
The four colour modes. Three are reachable without any caller asking:
Alpha from an alpha-type soft mask and from an uncoloured tiling
pattern, Gray from a grayscale render, Forced from a colour scheme.
Variants§
Normal
Colours pass through unchanged.
Gray
Every path and text colour collapses to its NTSC gray.
Alpha
Drawing writes alpha as gray: the mode a soft mask’s alpha group and an uncoloured tile render in.
Forced(ColorScheme)
Path and text colours are replaced wholesale; images, shadings and forms keep their own and are not gray-translated either.
Trait Implementations§
impl Copy for ColorMode
impl Eq for ColorMode
impl StructuralPartialEq for ColorMode
Auto Trait Implementations§
impl Freeze for ColorMode
impl RefUnwindSafe for ColorMode
impl Send for ColorMode
impl Sync for ColorMode
impl Unpin for ColorMode
impl UnsafeUnpin for ColorMode
impl UnwindSafe for ColorMode
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