Decal
A declarative graphics rendering library that lets you describe scenes using a Rust-native DSL and render them to SVG or PNG.
Usage
At a high level, the flow looks like this:
- Build a scene using the
decal!macro and primitives likeRow,Column,Text,Image, etc. - Initialize an
Enginewith fonts and options. - Render the scene to SVG (
vectorize) or rasterize it to a bitmap (rasterize).
use *;
use fs;
Explore examples.
License
MIT or Apache-2.0