Struct graphics::line::Line [] [src]

pub struct Line {
    pub color: Color,
    pub radius: Radius,
    pub shape: Shape,
}

A colored line with a default border radius

Fields

The line color

The line radius

The line shape

Methods

impl Line
[src]

Creates a new line

Creates a new line

Sets color.

Sets radius.

Sets width.

Sets shape.

Draws line using default method.

Draws line using triangulation.

Draws an arrow

Head size is the sides of the triangle between the arrow hooks and the line

Trait Implementations

impl Colored for Line
[src]

Multiplies with red, green, blue and alpha values.

Rotates hue by radians.

Mixes the current color with white. Read more

Mixes the current color with black. Read more

Rotates hue by degrees.

impl Copy for Line
[src]

impl Clone for Line
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more