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

pub struct Polygon {
    pub color: Color,
}

A polygon

Fields

The color of the polygon

Methods

impl Polygon
[src]

Creates new polygon

Sets color.

Draws polygon using the default method.

Draws polygon using triangulation.

Draws tweened polygon with linear interpolation, using default method.

Draws tweened polygon with linear interpolation, using triangulation.

Trait Implementations

impl Copy for Polygon
[src]

impl Clone for Polygon
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more