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

type DrawingPathOptions<'a, T, S = Default> = Drawing<'a, PathOptions<T, S>, S>;

The drawing context for a path in the tessellation options state.

Methods

impl<'a, T, S> DrawingPathOptions<'a, T, S> where
    S: BaseFloat,
    T: TessellationOptions,
    PathOptions<T, S>: Into<Primitive<S>>,
    Primitive<S>: Into<Option<PathOptions<T, S>>>,
    PathGeometryBuilder<'b, 'ctxt, S>: GeometryBuilder<T::VertexInput>, 
[src]

pub fn events<I>(self, events: I) -> DrawingPath<'a, S> where
    I: IntoIterator<Item = PathEvent>, 
[src]

Submit the path events to be tessellated.

pub fn points<I>(self, points: I) -> DrawingPath<'a, S> where
    I: IntoIterator,
    I::Item: Into<Point2<S>>, 
[src]

Submit the path events as a polyline of points.

pub fn points_closed<I>(self, points: I) -> DrawingPath<'a, S> where
    I: IntoIterator,
    I::Item: Into<Point2<S>>, 
[src]

Submit the path events as a polyline of points.

An event will be generated that closes the start and end points.