[][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]

pub fn stroke<C>(self, color: C) -> Self where
    C: IntoLinSrgba<ColorScalar>, 
[src]

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]

Use the given points as the vertices (corners) of the triangle.