macro_rules! icon_from_path {
($path:literal) => { ... };
}Expand description
Macro to embed an SVG icon at compile time.
The path is relative to the assets/icons/ directory of the crate that invokes the macro.
ยงExample
use egui_charts::icon_from_path;
use egui_charts::icons::Icon;
const ERASER: Icon = icon_from_path!("lines/eraser.svg");