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]

[src]

Creates a new line

[src]

Creates a new line

[src]

Sets color.

[src]

Sets radius.

[src]

Sets width.

[src]

Sets shape.

[src]

Draws line using default method.

[src]

Draws line using triangulation.

[src]

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]

[src]

Multiplies with red, green, blue and alpha values.

[src]

Rotates hue by radians.

[src]

Mixes the current color with white. Read more

[src]

Mixes the current color with black. Read more

[src]

Rotates hue by degrees.

impl Copy for Line
[src]

impl Clone for Line
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more