Enum elmesque::color::Gradient
[−]
[src]
pub enum Gradient { Linear((f64, f64), (f64, f64), Vec<(f64, Color)>), Radial((f64, f64), f64, (f64, f64), f64, Vec<(f64, Color)>), }
Linear or Radial Gradient.
Variants
Linear((f64, f64), (f64, f64), Vec<(f64, Color)>)
Takes a start and end point and then a series of color stops that indicate how to interpolate between the start and end points.
Radial((f64, f64), f64, (f64, f64), f64, Vec<(f64, Color)>)
First takes a start point and inner radius. Then takes an end point and outer radius. It then takes a series of color stops that indicate how to interpolate between the inner and outer circles.
Trait Implementations
impl Clone for Gradient
[src]
fn clone(&self) -> Gradient
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more