Randomly split a grid into small rectangles
Hello,
I would like to randomly split a grid into multiple rectangles (with a minimum and a maximum size for them)... It would give like this: http://image.noelshack.com/fichiers/2015/44/1446315835-sans-titre-3.png (black parts are un-used grid cells, white parts are not parts of the grid and colored parts are the random rectangles)
Do you have any ideas of how I could do that?
Comment
Your answer
Follow this Question
Related Questions
Grid movement with a rectangular grid? 1 Answer
How to split up a very large sprite into parts? 0 Answers
How do I generate a grid of random shapes that tile perfectly? 0 Answers
Randomly Placing Prefabs on a Grid 0 Answers
What would be the best way to recreate the block breaking system from Battle City? 0 Answers