pub struct Masking {
pub strength: [f64; 3],
pub reference_density: f64,
}Expand description
Masking couplers: the coloured coupler that is destroyed as the dye forms.
A colour negative is not three independent layers. The cyan dye absorbs some blue and green that it should not, so the cyan layer carries a coloured coupler — an orange mask — that absorbs blue and is consumed wherever cyan dye is made. The two errors then subtract: where the cyan dye is dense the mask is gone, and where it is thin the mask is there to take its place.
That is why an unexposed colour negative is orange, and why the orange goes
away as the frame is exposed. PrintContext::with_base_density adds the
mask as a constant; this is the term that makes it behave.
The strength is per layer because the mask does not have to belong to the cyan one alone — in practice the orange mask does, which is the default.
Fields§
§strength: [f64; 3]Fraction of the base density each layer destroys at its reference density.
reference_density: f64Density at which a layer has destroyed all the mask it can.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Forget for Masking
impl Freeze for Masking
impl Move for Masking
impl RefUnwindSafe for Masking
impl Send for Masking
impl Sync for Masking
impl Unpin for Masking
impl UnsafeUnpin for Masking
impl UnwindSafe for Masking
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more