Enum rmenu::color::Gradient [] [src]

pub enum Gradient {
    Linear((f64, f64)(f64, f64)Vec<(f64, Color)>),
    Radial((f64, f64)f64(f64, f64)f64Vec<(f64, Color)>),
}

Linear or Radial Gradient.

Variants

Takes a start and end point and then a series of color stops that indicate how to interpolate between the start and end points.

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]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for Gradient
[src]

[src]

Formats the value using the given formatter.