hexga_graphics

Crates.iohexga_graphics
lib.rshexga_graphics
version0.0.11-beta.3
created_at2025-05-12 16:22:23.678634+00
updated_at2025-08-12 19:10:40.608602+00
descriptionA crate to handle graphics stuff like loading / saving image
homepagehttps://github.com/Thomas-Mewily/hexga
repositoryhttps://github.com/Thomas-Mewily/hexga
max_upload_size
id1670796
size73,388
Mewily (Thomas-Mewily)

documentation

README

🚧 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 and ColorHSLA also use a float precision that can be changed using ColorRGBAOf and ColorRGBAOf

Main Hexga crate

Check hexga : https://crates.io/crates/hexga if you are interested in a quick start, it regroup multiple hexga crates.

Commit count: 338

cargo fmt