'''lecture_21_list_sidebyside.py Use lists to organize image placement information Oliver W. Layton CS151: Computational Thinking: Visual Media Fall 2020 ''' import display import graphics as gr import lecture_20_solid_colors_sidebyside as solid def sideBySideList(): '''Function to test out placing an image (left) next to its filtered version (right) ''' # Create an image # Make image list, with x, y placement info, how to process it (str), # and the `Image` object # We want a yellow image on the left, a pink one on the right # Make 1x2 canvas '''Process is: - Loop thru list, deal with one sublist at a time. - Clone the image object (original image by default). - Apply the solid color depending on the color name in the sublist. - Place it on the canvas. - Display the canvas. ''' # Update image object in list of lists # Display canvas # Wait for mouse click to close window and end program # main code if __name__ == '__main__': sideBySideList()