[−][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>>>,
[src]
S: BaseFloat,
T: TessellationOptions,
PathOptions<T, S>: Into<Primitive<S>>,
Primitive<S>: Into<Option<PathOptions<T, S>>>,
pub fn events<I>(self, events: I) -> DrawingPath<'a, S> where
I: IntoIterator<Item = PathEvent>,
[src]
I: IntoIterator<Item = PathEvent>,
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]
I: IntoIterator,
I::Item: Into<Point2<S>>,
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]
I: IntoIterator,
I::Item: Into<Point2<S>>,
Submit the path events as a polyline of points.
An event will be generated that closes the start and end points.
pub fn points_colored<I, P, C>(self, points: I) -> DrawingPath<'a, S> where
S: BaseFloat,
I: IntoIterator<Item = (P, C)>,
P: Into<Point2<S>>,
C: IntoLinSrgba<ColorScalar>,
[src]
S: BaseFloat,
I: IntoIterator<Item = (P, C)>,
P: Into<Point2<S>>,
C: IntoLinSrgba<ColorScalar>,
Submit path events as a polyline of colored points.
pub fn points_colored_closed<I, P, C>(self, points: I) -> DrawingPath<'a, S> where
S: BaseFloat,
I: IntoIterator<Item = (P, C)>,
P: Into<Point2<S>>,
C: IntoLinSrgba<ColorScalar>,
[src]
S: BaseFloat,
I: IntoIterator<Item = (P, C)>,
P: Into<Point2<S>>,
C: IntoLinSrgba<ColorScalar>,
Submit path events as a polyline of colored points.
The path with automatically close from the end point to the start point.
pub fn points_textured<I, P, TC>(
self,
view: &dyn ToTextureView,
points: I
) -> DrawingPath<'a, S> where
S: BaseFloat,
I: IntoIterator<Item = (P, TC)>,
P: Into<Point2<S>>,
TC: Into<TexCoords<S>>,
[src]
self,
view: &dyn ToTextureView,
points: I
) -> DrawingPath<'a, S> where
S: BaseFloat,
I: IntoIterator<Item = (P, TC)>,
P: Into<Point2<S>>,
TC: Into<TexCoords<S>>,
Submit path events as a polyline of textured points.
pub fn points_textured_closed<I, P, TC>(
self,
view: &dyn ToTextureView,
points: I
) -> DrawingPath<'a, S> where
S: BaseFloat,
I: IntoIterator<Item = (P, TC)>,
P: Into<Point2<S>>,
TC: Into<TexCoords<S>>,
[src]
self,
view: &dyn ToTextureView,
points: I
) -> DrawingPath<'a, S> where
S: BaseFloat,
I: IntoIterator<Item = (P, TC)>,
P: Into<Point2<S>>,
TC: Into<TexCoords<S>>,
Submit path events as a polyline of textured points.
The path with automatically close from the end point to the start point.