Activity 1: Create a color board

Workshop Resources

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')
Image showing activity one first example

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.

Color chart showing example RGB colors

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.

Click Files in the left panelClick the image file to see results

Launch Replit