ManevilleF / hexx

Hexagonal tools lib in rust
Apache License 2.0
276 stars 22 forks source link

Set orientation and fill area with hexagons #131

Closed thomasreiser closed 6 months ago

thomasreiser commented 6 months ago

Lets assume I have one area (size: 1000x800):

+------------------------------+ | (0,0) (1000,0) | | | | | | (0, 800) (1000,800) | +------------------------------+

What I now want to do is to fill this area completely with a hex grid. So the cell 0,0 should be at position (0,0) and the hex cell with the "biggest" coordinates should be at position (1000,800).

So what I would need would be:

Is this already possible with the library or do I need to develop something on my own?

ManevilleF commented 6 months ago

I would suggest looking add the shapes module, something like flat_rectangle.

The functions are very simple, so you can always create a new one from there

alice-i-cecile commented 6 months ago

It may be worth enabling Discussions on this repo so we can migrate questions like this into them :)