[][src]Type Definition nannou::draw::primitive::arrow::DrawingArrow

type DrawingArrow<'a, S = Default> = Drawing<'a, Arrow<S>, S>;

The drawing context for a line.

Methods

impl<'a, S> DrawingArrow<'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 arrow.

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

Specify the end point of the arrow.

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

Specify the start and end points of the arrow.

pub fn head_length(self, length: S) -> Self[src]

The length of the arrow head.

By default, this is equal to weight * 4.0.

This value will be clamped to the length of the line itself.

pub fn head_width(self, width: S) -> Self[src]

The width of the arrow head.

By default, this is equal to weight * 2.0.