PGSSoft / PuzzleMaker

Swift framework responsible for generating puzzles from the image
MIT License
128 stars 24 forks source link

Pieces are cut funny when puzzle units are rectangular #9

Open smitt04 opened 5 years ago

smitt04 commented 5 years ago

If the image is rectangular I and I create a square grid i.e. 4x4 or the image is square and i choose a rectangular grid i.e. 3x5 then the left and right / top and bottom are different sizes. It would be nice to always have all sides be equal cutouts. Maybe choose the smaller of the 2 sides and use that. I tried to figure out where to do that in code but I couldn't. Also if top and bottom are both inset then they tend to overlap. I attached some samples.

Screen Shot 2019-07-11 at 7 23 34 AM Screen Shot 2019-07-11 at 7 24 31 AM Screen Shot 2019-07-11 at 7 24 50 AM

EnesKaraosman commented 3 years ago

You need to select you row & column size respectively. (According to image's aspectRatio)