Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def finalDigitPicture():
- win = GraphWin("PenUltimate",300,300)
- win.setBackground("white")
- for x in range(0,100,40):
- for y in range(0,100,40):
- circle = Circle(Point(x+10,y+10),10)
- circle.setFill("red")
- circle.draw(win)
- triangle = Polygon(Point(x+20,y+0),Point(x+10,y+10),Point(x+20,y+20))
- triangle.setOutline("White")
- triangle.setFill("White")
- triangle.draw(win)
- for x in range(0,80,40):
- for y in range(0,100,40):
- square = Rectangle(Point(x+20,y+0),Point(x+40,y+20))
- square.setOutline("")
- square.setFill("Red")
- square.draw(win)
- for x in range(0,100,40):
- for y in range(0,80,40):
- square = Rectangle(Point(x+0,y+20),Point(x+20,y+40))
- square.setOutline("")
- square.setFill("Red")
- square.draw(win)
- for x in range(0,80,40):
- for y in range(0,80,40):
- circle = Circle(Point(x+30,y+30),10)
- circle.setFill("red")
- circle.draw(win)
- triangle = Polygon(Point(x+30,y+30),Point(x+20,y+20),Point(x+20,y+40))
- triangle.setOutline("White")
- triangle.setFill("White")
- triangle.draw(win)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement