[−][src]Type Definition nannou::draw::primitive::tri::DrawingTri
type DrawingTri<'a, S = Default> = Drawing<'a, Tri<S>, S>;
The drawing context for a Tri
.
Methods
impl<'a, S> DrawingTri<'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 points<P>(self, a: P, b: P, c: P) -> Self where
P: Into<Point2<S>>,
[src]
P: Into<Point2<S>>,
Use the given points as the vertices (corners) of the triangle.