''' Purpose: display a blank image of appropriate size ''' import random from PIL import Image from image_support import get_blank_image, show # specify background color RGB_alice_blue = ( 240, 248, 255 ) # This is a color! This is a tuple of r, g, b for a color. # get desired width and height reply = input( "Enter width and height of interest: " ) w, h = reply.split() # We get the width and height we entered. w, h = int( w ), int( h ) # We oonvert them both to integers. # specify image dimension size = ( w, h ) # This size of the image is width by height. # get appropriately sized and colored image img = get_blank_image( size, RGB_alice_blue ) # get_blank_image takes in two parameters, a size and a color, and returns an image # of that color and size # show image show( img ) # Show is a function that is able to show that image.