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 superellipse;
15mod winding;
16
17pub use color::Color;
18pub use matrix::{Matrix, MatrixKind};
19pub use measure::{ContourMeasure, PathSample};
20pub use path::{
21    Contour, FillRule, Path, PathBuilder, PathElement, Winding, constrain_radii,
22    constrain_radii_elliptical, local_tolerance,
23};
24pub use point::{Point, Size};
25pub use rect::Rect;
26pub use stroke::{Cap, Dash, Join, Stroke, dash_contours, stroke_contains, stroke_strip};
27pub use superellipse::RoundSuperellipse;