Struct colorous::Gradient [−][src]
pub struct Gradient { /* fields omitted */ }Implementations
impl Gradient[src]
impl Gradient[src]pub fn eval_rational(&self, i: usize, n: usize) -> Color[src]
Samples the gradient at position i/n. Requires 0 ≤ i < n.
pub fn eval_continuous(&self, t: f64) -> Color[src]
Samples the gradient at position t. Requires 0.0 ≤ t ≤ 1.0.
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for Gradient
impl !RefUnwindSafe for Gradientimpl !UnwindSafe for Gradient
impl !UnwindSafe for Gradient