pub enum PigmentMix {
Linear,
KubelkaMunk,
}Expand description
Optional color mixing approximation, separate from renderer blend modes.
Variants§
Linear
Linear-light interpolation.
KubelkaMunk
Six-band infinite-thickness Kubelka-Munk approximation, not calibrated pigments.
Implementations§
Source§impl PigmentMix
impl PigmentMix
Sourcepub fn mix(
self,
first: Color,
second: Color,
amount: f64,
) -> Result<Color, ValidationError>
pub fn mix( self, first: Color, second: Color, amount: f64, ) -> Result<Color, ValidationError>
Mixes approximate reflectances; endpoints remain exact, and this is not a calibrated model.
Sourcepub fn painting(self, strokes: Vec<BrushStroke>) -> PigmentPainting
pub fn painting(self, strokes: Vec<BrushStroke>) -> PigmentPainting
Composes up to 32 strokes; only covered intersections use pigment mixing.
Trait Implementations§
Source§impl Clone for PigmentMix
impl Clone for PigmentMix
impl Copy for PigmentMix
Auto Trait Implementations§
impl Forget for PigmentMix
impl Freeze for PigmentMix
impl Move for PigmentMix
impl RefUnwindSafe for PigmentMix
impl Send for PigmentMix
impl Sync for PigmentMix
impl Unpin for PigmentMix
impl UnsafeUnpin for PigmentMix
impl UnwindSafe for PigmentMix
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