4 releases
| 0.2.0 | Feb 23, 2026 |
|---|---|
| 0.1.2 | Jan 27, 2026 |
| 0.1.1 | Jan 27, 2026 |
| 0.1.0 | Jan 27, 2026 |
#1876 in GUI
Used in 4 crates
(2 directly)
22KB
412 lines
armas-icon
SVG icon rendering system for egui.
Overview
Converts SVG paths into tessellated geometry at compile time for efficient runtime rendering. Used internally by other Armas crates but can be used standalone for custom icon needs.
Installation
[dependencies]
armas-icon = "0.1.0"
egui = "0.33"
How it works
Icons are parsed from SVG files at compile time using usvg and tessellated into triangle meshes with lyon. The resulting geometry is stored in IconData structs for runtime rendering.
License
Licensed under either of:
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
- Apache License, Version 2.0 (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
at your option.
Links
Dependencies
~4.5–6.5MB
~122K SLoC