pub struct ColorStop {
pub position: f64,
pub color: DeviceColor,
pub raw_components: Vec<f64>,
pub source_components: Vec<f64>,
}Expand description
A single color stop in a gradient.
New fields may be added without notice; pattern-matching consumers
should use .. to ignore unmatched fields.
Fields§
§position: f64§color: DeviceColor§raw_components: Vec<f64>§source_components: Vec<f64>Pre-tint-transform component values, in the shading’s source
color space. For a Separation/DeviceN shading this holds the spot
tint(s) the source /Function evaluated to at this stop; the writer
emits these as the shading function’s output so the round-trip PDF
preserves the spot input dimension. Empty when not applicable.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ColorStop
impl RefUnwindSafe for ColorStop
impl Send for ColorStop
impl Sync for ColorStop
impl Unpin for ColorStop
impl UnsafeUnpin for ColorStop
impl UnwindSafe for ColorStop
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