Module graphics::types[][src]

Contains type aliases used in this library

Re-exports

pub use math::Matrix2d;
pub use math::Scalar;
pub use math::Vec2d;

Type Definitions

Area

The type used for area.

Color

[red, green, blue, alpha]

ColorComponent

The type used for color component.

FontSize

The type used for font size.

Line

[x1, y1, x2, y2]

Polygon

[p0, p1, …]

Polygons

A slice of polygons.

Radius

The type used for radius.

Ray

[x, y, dir_x, dir_y]

Rectangle

Rectangle dimensions: [x, y, w, h]

Resolution

The type used for resolution.

SourceRectangle

[x, y, w, h]

Triangle

[x1, y1, x2, y2, x3, y3]

Width

The type used for width.