Struct graphics::polygon::Polygon [] [src]

pub struct Polygon {
    pub color: Color,
}

A polygon

Fields

The color of the polygon

Methods

impl Polygon
[src]

[src]

Creates new polygon

[src]

Sets color.

[src]

Draws polygon using the default method.

[src]

Draws polygon using triangulation.

[src]

Draws tweened polygon with linear interpolation, using default method.

[src]

Draws tweened polygon with linear interpolation, using triangulation.

Trait Implementations

impl Copy for Polygon
[src]

impl Clone for Polygon
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more