Crate hex_renderer

Source
Expand description

Library for generating images of hex patterns from the HexCasting mod

This crate currently includes two different Grids to draw the patterns on as well as many options.

HexGrid - A hexagonal grid with a maximum width. SquareGrid - Grid of fixed size tiles (squares) that dynamically size the patterns to fit within them.

To get started, look at one of the grids

Re-exports§

pub use options::defaults;

Modules§

grids
All of the grids to draw images on.
options
All structs/enums used to define rendering options
pattern_utils
Everything related to working with and representing individual patterns

Structs§

Pattern
Represents a pattern to be drawn on a grid

Enums§

PatternParseError
PatternVariant
Wrapper around Pattern to specify special cases