Pre-requisite:Python Basics, Python Image Manipulation: Open an Image, Python Pixels: Colors and Pixels
Difficulty:Intermediate
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.fromPILimportImageimg=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.