Struct elmesque::form::Shape
[−]
[src]
pub struct Shape(pub Vec<(f64, f64)>);
A shape described by its edges.
Methods
impl Shape
fn filled(self, color: Color) -> Form
Create a filled-in shape.
fn textured(self, path: PathBuf) -> Form
Create a textured shape. The texture is described by some path and is tiled to fill the entire shape.
fn gradient(self, grad: Gradient) -> Form
Fill a shape with a gradient.
fn outlined(self, style: LineStyle) -> Form
Outline a shape with a given line style.