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: EMgBDdl.png]](https://i.imgur.com/EMgBDdl.png)