[][src]Type Definition nannou::draw::primitive::line::DrawingLine

type DrawingLine<'a, S = Default> = Drawing<'a, Line<S>, S>;

The drawing context for a line.

Methods

impl<'a, S> DrawingLine<'a, S> where
    S: BaseFloat
[src]

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

Short-hand for the stroke_weight method.

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

Short-hand for the stroke_tolerance method.

pub fn start(self, start: Point2<S>) -> Self[src]

Specify the start point of the line.

pub fn end(self, end: Point2<S>) -> Self[src]

Specify the end point of the line.

pub fn points(self, start: Point2<S>, end: Point2<S>) -> Self[src]

Specify the start and end points of the line.