# grixy
Zero-cost 2D grids for Rust.
_Powerful enough for embedded systems, convenient enough for game development._
[](https://github.com/crates-lurey-io/grixy/actions/workflows/test.yml)
[](https://github.com/crates-lurey-io/grixy/actions/workflows/docs.yml)
[](https://crates.io/crates/grixy)
[](https://codecov.io/gh/crates-lurey-io/grixy)
## Example
### Drawing
Grixy can be used for more complex operations like software blending or scaling:
```sh
cargo run --example mono-font-raster
```
This example:
- loads a bitmap font, and views it as a grid of glyphs;
- creates an in-memory buffer of rgba pixels;
- draws the glyphs into the pixel buffer;
- (using the `png` crate) saves the pixel buffer as a PNG file, seen below.

## Contributing
This project uses [`just`][] to run commands the same way as the CI:
- `cargo just check` to check formatting and lints.
- `cargo just coverage` to generate and preview code coverage.
- `cargo just doc` to generate and preview docs.
- `cargo just test` to run tests.
[`just`]: https://crates.io/crates/just
For a full list of commands, see the [`Justfile`](./Justfile).