Expand description
Vector image component built on top of SVG parsing and tessellation.
This module mirrors the ergonomics of crate::image, but keeps the content
in vector form so it can scale cleanly at any size. SVG data is parsed with
[usvg] and tessellated into GPU-friendly triangles using lyon.
The resulting ImageVectorData can be cached and reused across frames.
Structs§
- Image
Vector Data - Tessellated vector data ready for rendering.
Enums§
- Image
Vector Load Error - Errors that can occur while decoding or tessellating vector images.
- Image
Vector Source - Source for loading SVG vector data.
- Tint
Mode - Defines how the tint color is combined with the vector image.
Functions§
- load_
image_ vector_ from_ source - Load
ImageVectorDatafrom the provided source.