# Bruce Maxwell # Spring 2010 # second test function for lab 10 lab from interpreter import * from shape import * def main(): s = Square() s.setStyle( 'jitter' ) t = Triangle() t.setStyle( 'jitter' ) g = 0.2 for i in range(3): r = 0.2 + 0.3*i for j in [0, 1, 2]: b = 0.8 - 0.3*i t.setColor( (b, g, r) ) t.setJitter(j*3) t.draw( -180 + 150*j, 180 - 150*i, scale = 0.4, orientation = 0 ) s.setColor( (r, g, b) ) s.setJitter(j*3) s.draw( -200 + 150*j, 200 - 150*i, scale = 0.8, orientation = 0 ) Interpreter().hold() if __name__ == '__main__': main()