skia-rs-path

Crates.ioskia-rs-path
lib.rsskia-rs-path
version0.2.0
created_at2026-01-02 20:25:03.628578+00
updated_at2026-01-03 18:44:44.80008+00
descriptionPath geometry and operations for skia-rs
homepagehttps://github.com/pegasusheavy/skia-rs
repositoryhttps://github.com/pegasusheavy/skia-rs
max_upload_size
id2019161
size138,348
Joseph R. Quinn (quinnjr)

documentation

https://docs.rs/skia-rs-path

README

skia-rs-path

Path geometry and operations for skia-rs, a pure Rust implementation of the Skia 2D graphics library.

Features

  • Path construction: Path, PathBuilder with fluent API
  • Path operations: Boolean union, intersect, difference, xor
  • Path effects: Dash, corner, discrete, trim effects
  • SVG parsing: Parse SVG path data strings
  • Path measurement: Length, position along path

Usage

use skia_rs_path::{PathBuilder, PathOps};

// Build a path with fluent API
let path = PathBuilder::new()
    .move_to(0.0, 0.0)
    .line_to(100.0, 0.0)
    .quad_to(150.0, 50.0, 100.0, 100.0)
    .close()
    .build();

// Parse SVG path data
let heart = PathBuilder::from_svg("M 10,30 A 20,20 0,0,1 50,30 ...").build();

// Boolean operations
let union = PathOps::union(&path1, &path2);

License

MIT OR Apache-2.0

See the main repository for more information.

Commit count: 0

cargo fmt