Trait aoer_plotty_rs::geo_types::hatch::OutlineFillStroke
source · [−]pub trait OutlineFillStroke {
fn outline_fill_stroke_with_hatch(
&self,
stroke_weight: f64,
pen_width: f64,
pattern: Hatches,
angle: f64
) -> Result<MultiLineString<f64>, Box<dyn Error>>;
}
Expand description
Turns out that one of the most common things we do to a line is to stroke it with a weight, turning it into a series of outline LineStrings, which are in turn filled with a hatch. This trait combines those into a simple single operation.