| Crates.io | hexga_graphics |
| lib.rs | hexga_graphics |
| version | 0.0.11-beta.3 |
| created_at | 2025-05-12 16:22:23.678634+00 |
| updated_at | 2025-08-12 19:10:40.608602+00 |
| description | A crate to handle graphics stuff like loading / saving image |
| homepage | https://github.com/Thomas-Mewily/hexga |
| repository | https://github.com/Thomas-Mewily/hexga |
| max_upload_size | |
| id | 1670796 |
| size | 73,388 |
🚧 Warning: Experimental Crate! 🚧
This crate is currently in beta and experimental. It is subject to breaking changes in future releases. Use it at your own risk, and keep in mind that the API may change in future versions.
Currently don't do that much, can just create a image from a grid and save it.
use hexga_graphics::prelude::*;
assert_eq!(<ColorRGBAOf::<u8> as CastRangeIntoComposite<u16>>::cast_range_into_composite(ColorRGBAOf::<u8>::RED),
ColorRGBAOf::<u16>::RED
);
If you need more control about the precision, each type have another more generic base type:
ColorRGBA and ColorHSLA also use a float precision that can be changed using ColorRGBAOf and ColorRGBAOfCheck hexga : https://crates.io/crates/hexga if you are interested in a quick start, it regroup multiple hexga crates.