pub enum GradientInterp {
Linear,
Step,
SmoothStep,
}Expand description
Interpolation mode between gradient stops.
Variants§
Linear
Linear blend between stops (default).
Step
No interpolation — output is the color of the nearest stop on the left.
SmoothStep
Smooth Hermite interpolation (t²(3-2t)).
Trait Implementations§
Source§impl Clone for GradientInterp
impl Clone for GradientInterp
Source§fn clone(&self) -> GradientInterp
fn clone(&self) -> GradientInterp
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for GradientInterp
Auto Trait Implementations§
impl Freeze for GradientInterp
impl RefUnwindSafe for GradientInterp
impl Send for GradientInterp
impl Sync for GradientInterp
impl Unpin for GradientInterp
impl UnsafeUnpin for GradientInterp
impl UnwindSafe for GradientInterp
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