9 releases
Uses new Rust 2024
0.0.10-beta.16 | Jun 1, 2025 |
---|---|
0.0.10-beta.13 | May 29, 2025 |
0.0.10-beta.12 | May 25, 2025 |
0.0.10-beta.11 | May 17, 2025 |
0.0.10-beta.10 | May 12, 2025 |
#484 in Images
21 downloads per month
Used in 5 crates
(4 directly)
460KB
8K
SLoC
Useful type like
- [ColorRGBA] with any precision (also handle the conversion between different primitive precision)
- [ColorHSLA] of various precision
More advanced type
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 [ColorRGBAOf]
🚧 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.
HexGa Graphics
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
);
More advanced type
If you need more control about the precision, each type have another more generic base type:
ColorRGBA
andColorHSLA
also use afloat
precision that can be changed usingColorRGBAOf
andColorRGBAOf
Main Hexga crate
Check hexga
: https://crates.io/crates/hexga if you are interested in a quick start, it regroup multiple hexga crates.
Dependencies
~5.5MB
~107K SLoC