Skip to main content

Crate reflow_vector

Crate reflow_vector 

Source
Expand description

2D vector graphics for Reflow.

Pure Rust, Wasm-safe. Provides:

  • Path2D — bezier path representation with SVG d attribute parsing
  • Shape primitives — rect, ellipse, polygon, star, line
  • Path operations — transform, reverse, flatten, sample, bounding box
  • Fill/stroke styles — solid, gradient, pattern

Re-exports§

pub use path::Path2D;
pub use shapes::*;
pub use style::*;

Modules§

path
Path2D — 2D bezier path with SVG d attribute parsing.
shapes
Shape primitives — generate Path2D from high-level parameters.
style
Fill and stroke style definitions.
transform
2D affine transforms for paths.