interactive shellu from pil import imagecolor imagecolor getcolor('red''rgba'( imagecolor getcolor('red''rgba'( imagecolor getcolor('black''rgba'( imagecolor getcolor('chocolate''rgba'( imagecolor getcolor('cornflowerblue''rgba'( firstyou need to import the imagecolor module from pil (not from pillowyou'll see why in momentthe color name string you pass to imagecolor getcolor(is case-insensitiveso passing 'redv and passing 'redw give you the same rgba tuple you can also pass more unusual color nameslike 'chocolateand 'cornflower bluepillow supports huge number of color namesfrom 'aliceblueto 'whitesmokeyou can find the full list of more than standard color names in the resources at coordinates and box tuples image pixels are addressed with xand -coordinateswhich respectively specify pixel' horizontal and vertical locations in an image the origin is the pixel at the top-left corner of the image and is specified with the notation ( the first zero represents the -coordinatewhich starts at zero at the origin and increases going from left to right the second zero represents the -coordinatewhich starts at zero at the origin and increases going down the image this bears repeatingy-coordinates increase going downwardwhich is the opposite of how you may remember -coordinates being used in math class figure - demonstrates how this coordinate system works increases increases ( , ( , figure - the xand -coordinates of image of some sort of ancient data storage device manipulating images