fananek / hex-grid

HexGrid library provides easy and intuitive way of working with hexagonal grids.
MIT License
45 stars 8 forks source link

more shape generators #17

Closed mgrider closed 1 year ago

mgrider commented 1 year ago

This PR adds a parallelogram generator, as well as an irregular hexagon grid generator. The irregular hexagon algorithm took a while to work out, but I think I'm happy with it now. (Definitely open to improvement!)

You can see this in action by checking out the feature-more-generators branch of mgrider/SKHexGrid and then pointing the hex-grid package at this branch, but I've also attached a screenshot of a 4x7 hexagon grid.

Simulator Screen Shot - iPad (10th generation) - 2023-02-12 at 17 44 30