Enum conrod::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

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

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

Derived Implementations

impl Debug for Gradient

fn fmt(&self, __arg_0: &mut Formatter) -> Result<(), Error>

impl Clone for Gradient

fn clone(&self) -> Gradient

fn clone_from(&mut self, source: &Self)