Enum conrod_core::color::Gradient
source · [−]pub enum Gradient {
Linear((f64, f64), (f64, f64), Vec<(f64, Color)>),
Radial((f64, f64), f64, (f64, f64), f64, Vec<(f64, Color)>),
}
Expand description
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
Auto Trait Implementations
impl RefUnwindSafe for Gradient
impl UnwindSafe for Gradient
Blanket Implementations
Mutably borrows from an owned value. Read more