RE: Post making contest 6.0
06-23-2017, 04:50 AM
Anyone know of a simple algorithm that can take a complicated shape/section of an array and break it into rectangles to optimize how long it takes to draw on a graphics pane?
Something that can turn this (each pixel drawn seperately):
![[Image: eKDJM83.png]](https://i.imgur.com/eKDJM83.png)
Into this (most pixels drawn in large rectangles):
Something that can turn this (each pixel drawn seperately):
![[Image: eKDJM83.png]](https://i.imgur.com/eKDJM83.png)
Into this (most pixels drawn in large rectangles):


![[Image: egg006.png?raw=1]](https://www.dropbox.com/s/xirjasxjrie6qdn/egg006.png?raw=1)
![[Image: Gou1RJu.png]](https://i.imgur.com/Gou1RJu.png)