'''Use Pillow for image representation''' # import the Pillow Image type from PIL import Image # create a d by d canvas on which to paint our image image_width = 300 image_height = 400 c1 = 'red' c2 = 'thistle' c3 = (204, 204, 255 ) c4 = '#0892D0' image0 = Image.new( 'RGB', ( image_width, image_height ) ) image1 = Image.new( 'RGB', ( image_width, image_height ), c1 ) image2 = Image.new( 'RGB', ( image_width, image_height ), c2 ) image3 = Image.new( 'RGB', ( image_width, image_height ), c3 ) image4 = Image.new( 'RGB', ( image_width, image_height ), c4 ) image0.show() ; input( 'Enter when ready: ' ) image1.show() ; input( 'Enter when ready: ' ) image2.show() ; input( 'Enter when ready: ' ) image3.show() ; input( 'Enter when ready: ' ) image4.show()