pub struct Ramp { /* private fields */ }Expand description
A colour ramp sampled at t ∈ 0..=1. Built from theme colours so it follows
the active palette.
Implementations§
Source§impl Ramp
impl Ramp
Sourcepub fn sequential(th: &Theme) -> Self
pub fn sequential(th: &Theme) -> Self
Sequential low→high ramp: a dim theme ground → accent → glow.
Good for magnitudes (heatmaps, treemap weights).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Ramp
impl RefUnwindSafe for Ramp
impl Send for Ramp
impl Sync for Ramp
impl Unpin for Ramp
impl UnsafeUnpin for Ramp
impl UnwindSafe for Ramp
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