Type Definition nannou::draw::primitive::polygon::DrawingPolygonInit [−][src]
type DrawingPolygonInit<'a, S = Default> = Drawing<'a, PolygonInit<S>, S>;
Initialised drawing state for a polygon.
Implementations
impl<'a, S> DrawingPolygonInit<'a, S> where
S: BaseFloat,
[src]
S: BaseFloat,
pub fn stroke<C>(self, color: C) -> Self where
C: IntoLinSrgba<ColorScalar>,
[src]
C: IntoLinSrgba<ColorScalar>,
Stroke the outline with the given color.
pub fn events<I>(self, events: I) -> DrawingPolygon<'a, S> where
S: BaseFloat,
I: IntoIterator<Item = PathEvent>,
[src]
S: BaseFloat,
I: IntoIterator<Item = PathEvent>,
Describe the polygon with a sequence of path events.
pub fn points<I>(self, points: I) -> DrawingPolygon<'a, S> where
S: BaseFloat,
I: IntoIterator,
I::Item: Into<Point2<S>>,
[src]
S: BaseFloat,
I: IntoIterator,
I::Item: Into<Point2<S>>,
Describe the polygon with a sequence of points.
pub fn points_colored<I, P, C>(self, points: I) -> DrawingPolygon<'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>,
Consumes an iterator of points and converts them to an iterator yielding path events.
pub fn points_textured<I, P, T>(
self,
view: &dyn ToTextureView,
points: I
) -> DrawingPolygon<'a, S> where
S: BaseFloat,
I: IntoIterator<Item = (P, T)>,
P: Into<Point2<S>>,
T: Into<TexCoords<S>>,
[src]
self,
view: &dyn ToTextureView,
points: I
) -> DrawingPolygon<'a, S> where
S: BaseFloat,
I: IntoIterator<Item = (P, T)>,
P: Into<Point2<S>>,
T: Into<TexCoords<S>>,
Describe the polygon with an iterator yielding textured poings.