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
Linear
Fields of Linear
start: (f32, f32) | |
end: (f32, f32) | |
start_color: Color | |
end_color: Color |
Box
Fields of Box
position: (f32, f32) | |
size: (f32, f32) | |
radius: f32 | |
feather: f32 | |
start_color: Color | |
end_color: Color |
Radial
Fields of Radial
center: (f32, f32) | |
inner_radius: f32 | |
outer_radius: f32 | |
start_color: Color | |
end_color: Color |
Trait Implementations
impl Paint for Gradient
[src]
impl Paint for Gradient
impl Copy for Gradient
[src]
impl Copy for Gradient
impl Clone for Gradient
[src]
impl Clone for Gradient
fn clone(&self) -> Gradient
[src]
fn clone(&self) -> Gradient
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Debug for Gradient
[src]
impl Debug for Gradient