Module image_vector

Module image_vector 

Source
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§

ImageVectorData
Tessellated vector data ready for rendering.

Enums§

ImageVectorLoadError
Errors that can occur while decoding or tessellating vector images.
ImageVectorSource
Source for loading SVG vector data.
TintMode
Defines how the tint color is combined with the vector image.

Functions§

load_image_vector_from_source
Load ImageVectorData from the provided source.