Activity 1: Create a color board
Example for basic colorboard
Here is an example of how to make a color board with the color red, a width of 60, and a length of 30.
#This is the example for creating a colorboard. from PIL import Image img = Image.new('RGB', (60, 30), 'red') img.save('pil_red.png')
Create your own colorboard!
Choose your favorite color and make a color board to play with! Here are some example colors you can choose from, but you can also pick your own color.
In order to see your image, please click on top left corner (which says ‘Files’), and then click on the image file to see the result.