''' Module gen.py ''' from PIL import Image def neg_pixel( p ) : pass def neg_image( original ) : pass if ( __name__ == '__main__' ) : p = ( 50, 100, 200 ) np = neg_pixel( p ) print( 'neg_pixel(', p, '): ', np ) import url IMAGE_WEB_FOLDER = 'http://www.cs.virginia.edu/~cs1112/images/' tj = IMAGE_WEB_FOLDER + 'tj.png' ml = IMAGE_WEB_FOLDER + 'ml.png' tj = url.get_image( tj ) ml = url.get_image( ml ) try : im = neg_image( tj ) im.show() except : print( 'neg_image() did not complete when processing Thomas Jefferson' ) try : im = neg_image( ml ) im.show() except : print( 'neg_image() did not complete when processing Mona Lisa' )