Expand description
A simple API for Pathfinder that mirrors a subset of HTML canvas.
Structs§
- Canvas
- Canvas
Font Context - Canvas
Rendering Context2D - ColorF
- ColorU
- Path2D
- RectF
- RectI
- NB: The origin is inclusive, while the lower right point is exclusive.
- Transform2F
- An affine transform, optimized with SIMD.
- Vector2F
- 2D points with 32-bit floating point coordinates.
- Vector2I
- 2D points with 32-bit signed integer coordinates.
Enums§
- ArcDirection
- Composite
Operation - Fill
Rule - Fill
Style - Image
Smoothing Quality - LineCap
- Line
Join - Text
Align - Text
Baseline
Traits§
- Canvas
Image Dest Location - Canvas
Image Source - Into
Vector2F - Either a scalar or a
Vector2F
.
Functions§
- color_
slice_ to_ u8_ slice - rgbaf
- A convenience method to construct a
ColorF
from an RGBA triple. - rgbau
- A convenience method to construct a
ColorU
from an RGBA triple. - rgbf
- A convenience method to construct a
ColorF
from an RGB triple. - rgbu
- A convenience method to construct a
ColorU
from an RGB triple. - u8_
slice_ to_ color_ slice - u8_
vec_ to_ color_ vec - vec2f
- A convenience alias for
Vector2F::new()
. - vec2i
- A convenience alias for
Vector2I::new()
.