pub enum GradientColorSpace {
Rgb,
Hsv,
}Expand description
Color space used for interpolation between stops.
Variants§
Rgb
Interpolate in RGB space (direct channel lerp).
Fast but can produce muddy intermediate colors.
Hsv
Interpolate in HSV space with hue-aware shortest-path blending.
Produces rainbow-like transitions. More expensive but visually pleasing for color ramps.
Trait Implementations§
Source§impl Clone for GradientColorSpace
impl Clone for GradientColorSpace
Source§fn clone(&self) -> GradientColorSpace
fn clone(&self) -> GradientColorSpace
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 GradientColorSpace
Auto Trait Implementations§
impl Freeze for GradientColorSpace
impl RefUnwindSafe for GradientColorSpace
impl Send for GradientColorSpace
impl Sync for GradientColorSpace
impl Unpin for GradientColorSpace
impl UnsafeUnpin for GradientColorSpace
impl UnwindSafe for GradientColorSpace
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