I wanted to convey how pixels appear if you zoom very deeply into a screen or a digital image. My strategy here was to create a grid using a for loop across the X and Y co-ordinates of the canvas. This is fairly straightforward.
Next, I wanted to cluster pixels at regular periods into a square shape. These clustered pixels needed to be of the same color. This turned out to be difficult and I remember spending quite some time figuring it out.
Sadly, I can’t seem to locate the source code so I won’t be able to share it. I will keep searching for those files and update the post when I find it.