Enum nanovg::Gradient[][src]

pub enum Gradient {
    Linear {
        start: (f32, f32),
        end: (f32, f32),
        start_color: Color,
        end_color: Color,
    },
    Box {
        position: (f32, f32),
        size: (f32, f32),
        radius: f32,
        feather: f32,
        start_color: Color,
        end_color: Color,
    },
    Radial {
        center: (f32, f32),
        inner_radius: f32,
        outer_radius: f32,
        start_color: Color,
        end_color: Color,
    },
}

Gradient paint used to fill or stroke paths with gradient.

Variants

Fields of Linear

Fields of Box

Fields of Radial

Trait Implementations

impl Paint for Gradient
[src]

impl Copy for Gradient
[src]

impl Clone for Gradient
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for Gradient
[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl Send for Gradient

impl Sync for Gradient