Type Alias nannou::draw::primitive::tri::DrawingTri

source ·
pub type DrawingTri<'a> = Drawing<'a, Tri>;
Expand description

The drawing context for a Tri.

Aliased Type§

struct DrawingTri<'a> { /* private fields */ }

Implementations§

source§

impl<'a> DrawingTri<'a>

source

pub fn stroke<C>(self, color: C) -> Self

Stroke the outline with the given color.

source

pub fn points<P>(self, a: P, b: P, c: P) -> Self
where P: Into<Point2>,

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