grixy 0.5.0

2-dimensional grids
Documentation

grixy

Zero-cost 2D grids for Rust.

Powerful enough for embedded systems, convenient enough for game development.

Test Docs Crates.io Version codecov

Example

Drawing

Grixy can be used for more complex operations like software blending or scaling:

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.

Loading and rendering an 8x8 font

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.

For a full list of commands, see the Justfile.