Type Alias nannou::draw::primitive::path::PathFill

source ·
pub type PathFill = PathOptions<FillOptions>;
Expand description

A filled path drawing context.

Aliased Type§

struct PathFill { /* private fields */ }

Implementations§

source§

impl PathFill

source

pub fn tolerance(self, tolerance: f32) -> Self

Maximum allowed distance to the path when building an approximation.

This method is shorthand for the fill_tolerance method.

source

pub fn rule(self, rule: FillRule) -> Self

Specify the rule used to determine what is inside and what is outside of the shape.

Currently, only the EvenOdd rule is implemented.

This method is shorthand for the fill_rule method.

Trait Implementations§

source§

impl SetFill for PathFill

source§

fn fill_options_mut(&mut self) -> &mut FillOptions

Provide a mutable reference to the FillOptions field.
source§

fn fill_opts(self, opts: FillOptions) -> Self

Specify the whole set of fill tessellation options.
source§

fn fill_tolerance(self, tolerance: f32) -> Self

Maximum allowed distance to the path when building an approximation.
source§

fn fill_rule(self, rule: FillRule) -> Self

Specify the rule used to determine what is inside and what is outside of the shape. Read more
source§

fn fill_sweep_orientation(self, orientation: Orientation) -> Self

Whether to perform a vertical or horizontal traversal of the geometry. Read more
source§

fn handle_intersections(self, handle: bool) -> Self

A fast path to avoid some expensive operations if the path is known to not have any self-intersections. Read more