[−][src]Type Definition nannou::draw::primitive::path::DrawingPathStroke
type DrawingPathStroke<'a, S = Default> = Drawing<'a, PathStroke<S>, S>;
The drawing context for a stroked path, prior to path event submission.
Methods
impl<'a, S> DrawingPathStroke<'a, S> where
S: BaseFloat,
[src]
S: BaseFloat,
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, points: I) -> DrawingPath<'a, S> where
S: BaseFloat,
I: IntoIterator,
I::Item: Into<ColoredPoint2<S>>,
[src]
S: BaseFloat,
I: IntoIterator,
I::Item: Into<ColoredPoint2<S>>,
Submit path events as a polyline of colored points.
pub fn colored_points_closed<I>(self, points: I) -> DrawingPath<'a, S> where
S: BaseFloat,
I: IntoIterator,
I::Item: Into<ColoredPoint2<S>>,
[src]
S: BaseFloat,
I: IntoIterator,
I::Item: Into<ColoredPoint2<S>>,
Submit path events as a polyline of colored points.
The path with automatically close from the end point to the start point.