knitcodemonkey / hexagon-quilt-map

Trying to "randomize" my quilt hexis
https://knitcodemonkey.github.io/hexagon-quilt-map/
MIT License
1 stars 3 forks source link

Accept number of hexagons wide and tall #1

Closed knitcodemonkey closed 5 years ago

knitcodemonkey commented 5 years ago

Issue

Current behavior

At the moment, the form accepts hexagons wide and tall, and adjusts the number of hexagons correctly, but the layout only works if you use an even number for width.

Desired behavior

Accepts any whole number of hexagons wide and tall.

izhuravlev commented 5 years ago

Hey @knitcodemonkey, As for the moment when I've opened the app (https://knitcodemonkey.github.io/hexagon-quilt-map/), there is a field for user input to receive hexagons width and height. Do you want the app to scale created hexagons appropriately?

knitcodemonkey commented 5 years ago

Currently, the layout only works if you use an even number of hexagons wide. We need to allow it to correctly adapt to odd numbered hexagons.

izhuravlev commented 5 years ago

@knitcodemonkey I can try to fix this

knitcodemonkey commented 5 years ago

I'm so sorry, @izhuravlev. I didn't notice your request to take this issue until just now. Another good issue might be to add a square shape, not just a hexagon: Story #6.