Africa Day (25 May) was a nice excuse to celebrate African gamers.
This example is a bit more complex than the programs we’ve been writing so far, but you can download the code here.
I used a technique explained by Daniel Schiffmnn in this example – basically you read the pixels from a source image as a pixel array. Then you use the colours stored in this array to draw the pixel array of your own sketch. So the images above were generated from this simple black and white silhouette:
If you want to understand how it’s done, it might help you to first refresh your memory of how we can repeat a function a specified number of times using a For Loop.
You can also draw the colours of a source image exactly, as in this example: