Module graphics::types

source ·
Expand description

Contains type aliases used in this library

Re-exports

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

Type Definitions

The type used for area.
[red, green, blue, alpha]
The type used for color component.
The type used for font size.
[x1, y1, x2, y2]
[p0, p1, …]
A slice of polygons.
The type used for radius.
[x, y, dir_x, dir_y]
Rectangle dimensions: [x, y, w, h]
The type used for resolution.
[x, y, w, h]
[x1, y1, x2, y2, x3, y3]
The type used for width.