Enum flo_canvas::PathAttribute
source · pub enum PathAttribute {
Stroke(f32, Color),
StrokePixels(f32, Color),
Fill(Color),
FillTexture(TextureId, (f32, f32), (f32, f32), Option<Transform2D>),
FillGradient(GradientId, (f32, f32), (f32, f32), Option<Transform2D>),
}
Expand description
Attributes used to render a bezier path
Variants§
Stroke(f32, Color)
Path is drawn as a stroke with the specified width and colour
StrokePixels(f32, Color)
Path is drawn as a stroke with the specified pixel width and colour
Fill(Color)
Path is filled with the specified colour
FillTexture(TextureId, (f32, f32), (f32, f32), Option<Transform2D>)
Path is filled with the specified texture
FillGradient(GradientId, (f32, f32), (f32, f32), Option<Transform2D>)
Path is filled with the specified gradient
Trait Implementations§
source§impl Clone for PathAttribute
impl Clone for PathAttribute
source§fn clone(&self) -> PathAttribute
fn clone(&self) -> PathAttribute
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more