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.

Trait Implementations

Derived Implementations

impl Debug for Shape

fn fmt(&self, __arg_0: &mut Formatter) -> Result

impl Clone for Shape

fn clone(&self) -> Shape

fn clone_from(&mut self, source: &Self)