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 more