pub enum BlackGenerationFunction {
Default,
WithUnderColorRemoval,
}
Expand description
Black generation calculates the amount of black to be used when trying to reproduce a particular color.
Variants§
Default
Regular black generation function
ⓘ
let cyan = 1.0 - red;
let magenta = 1.0 - green;
let yellow = 1.0 - blue;
let black = min(cyan, magenta, yellow);
WithUnderColorRemoval
Expects an UnderColorRemoval to be set. This will compensate the color for the added black
ⓘ
let cyan = 1.0 - red;
let magenta = 1.0 - green;
let yellow = 1.0 - blue;
let black = min(cyan, magenta, yellow);
Trait Implementations§
source§impl Clone for BlackGenerationFunction
impl Clone for BlackGenerationFunction
source§fn clone(&self) -> BlackGenerationFunction
fn clone(&self) -> BlackGenerationFunction
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for BlackGenerationFunction
impl Debug for BlackGenerationFunction
source§impl PartialEq for BlackGenerationFunction
impl PartialEq for BlackGenerationFunction
source§fn eq(&self, other: &BlackGenerationFunction) -> bool
fn eq(&self, other: &BlackGenerationFunction) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for BlackGenerationFunction
impl StructuralPartialEq for BlackGenerationFunction
Auto Trait Implementations§
impl RefUnwindSafe for BlackGenerationFunction
impl Send for BlackGenerationFunction
impl Sync for BlackGenerationFunction
impl Unpin for BlackGenerationFunction
impl UnwindSafe for BlackGenerationFunction
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