rasterize

Crates.iorasterize
lib.rsrasterize
version0.4.0
sourcesrc
created_at2021-04-30 12:02:08.539212
updated_at2024-04-01 20:52:01.712727
descriptionSimple and small 2D rendering library
homepagehttps://github.com/aslpavel/rasterize
repositoryhttps://github.com/aslpavel/rasterize.git
max_upload_size
id391517
size431,900
Pavel (aslpavel)

documentation

README

Rasterizer

Build Status MIT License Crate API Docs

This is a fully functional 2D rasterizer and SVG path parser.

Features:

  • parsing SVG path format
  • rendering elliptic arc, lines, cubic/quadratic bezier curves
  • curve offsetting
  • linear and radial gradients

Usage example

There is a very simple binary in examples folder that can be used to render SVG path

$ cargo run --release --example rasterize -- data/squirrel.path -w 512 -o squirrel.bmp

This will produce:

squirrel

Commit count: 172

cargo fmt