Skip to main content

valo_geometry/
lib.rs

1//! GPU-free geometry and color types for Valo.
2//!
3//! Coordinates are y-down with the origin at the top-left. Units are logical
4//! pixels until transformed. [`Matrix`] is a full 4×4 transform, while draw
5//! ordering remains a renderer concern. [`Color`] stores straight-alpha sRGB.
6
7mod color;
8mod matrix;
9mod measure;
10mod path;
11mod point;
12mod rect;
13mod stroke;
14mod winding;
15
16pub use color::Color;
17pub use matrix::{Matrix, MatrixKind};
18pub use measure::{ContourMeasure, PathSample};
19pub use path::{
20    constrain_radii, constrain_radii_elliptical, local_tolerance, Contour, FillRule, Path,
21    PathBuilder, Winding,
22};
23pub use point::{Point, Size};
24pub use rect::Rect;
25pub use stroke::{dash_contours, stroke_contains, stroke_strip, Cap, Dash, Join, Stroke};