Type Alias nannou::draw::primitive::line::DrawingLine

source ·
pub type DrawingLine<'a> = Drawing<'a, Line>;
Expand description

The drawing context for a line.

Aliased Type§

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

Implementations§

source§

impl<'a> DrawingLine<'a>

source

pub fn weight(self, weight: f32) -> Self

Short-hand for the stroke_weight method.

source

pub fn tolerance(self, tolerance: f32) -> Self

Short-hand for the stroke_tolerance method.

source

pub fn start(self, start: Point2) -> Self

Specify the start point of the line.

source

pub fn end(self, end: Point2) -> Self

Specify the end point of the line.

source

pub fn points(self, start: Point2, end: Point2) -> Self

Specify the start and end points of the line.