Expand description
Contrast is a web-gpu based 2D render engine written in Rust.
Re-exports§
pub extern crate geometric_algebra;
pub extern crate ttf_parser;
pub extern crate wgpu;
Modules§
- convex_
hull - 2D convex hull algorithms
- curve
- Various math helper functions to work with bezier curves.
- error
- Error handling
- path
- Defining the geometry and rendering options of Paths
- renderer
- Rendering of Paths bundeled in Shapes using a Renderer
- safe_
float - Floats which are guaranteed to be finite (no NaNs or Infinity)
- text
- (Optional) Working with font faces, converting glyphs and text to Paths
- utils
- Miscellaneous utility and helper functions
Macros§
- concat_
buffers - Concats the given sequence of Buffers and serializes them into a
Vec<u8>
- hash_
map - Like
vec!
but forHashMap
- hash_
set - Like
vec!
but forHashSet
- match_
option - Like
matches!
but returns an option of the matched value