[][src]Type Definition nannou::draw::primitive::path::PathStroke

type PathStroke<S = Default> = PathOptions<StrokeOptions, S>;

A stroked path drawing context.

Methods

impl<S> PathStroke<S>[src]

pub fn weight(self, weight: f32) -> Self[src]

Short-hand for the stroke_weight method.

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

Short-hand for the stroke_tolerance method.

pub fn colored_points<I>(self, ctxt: DrawingContext<S>, points: I) -> Path<S> where
    S: BaseFloat,
    I: IntoIterator,
    I::Item: Into<ColoredPoint2<S>>, 
[src]

Submit path events as a polyline of colored points.

pub fn colored_points_closed<I>(
    self,
    ctxt: DrawingContext<S>,
    points: I
) -> Path<S> where
    S: BaseFloat,
    I: IntoIterator,
    I::Item: Into<ColoredPoint2<S>>, 
[src]

Submit path events as a polyline of colored points.

Trait Implementations

impl<S> SetStroke for PathStroke<S>[src]