# test

Jul 5th, 2022
761
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
1. from cs1graphics import *
2. paper = Canvas(300, 200, 'skyBlue', 'My World')
3. sun = Circle(30, Point(250,50))
4. sun.setFillColor('yellow')
9. chimney = Rectangle(15, 28, Point(155,85))
10. chimney.setFillColor('red')
11. chimney.setBorderColor('red')
13. tree = Polygon(Point(50,80), Point(30,140), Point(70,140))
14. tree.setFillColor('darkGreen')
16. smoke = Path(Point(155,70), Point(150,65), Point(160,55), Point(155,50))
18. sunraySW = Path(Point(225,75), Point(210,90))
19. sunraySW.setBorderColor('yellow')
20. sunraySW.setBorderWidth(6)
22. sunraySE = Path(Point(275,75), Point(290,90))
23. sunraySE.setBorderColor('yellow')
24. sunraySE.setBorderWidth(6)
26. sunrayNE = Path(Point(275,25), Point(290,10))
27. sunrayNE.setBorderColor('yellow')
28. sunrayNE.setBorderWidth(6)
30. sunrayNW = Path(Point(225,25), Point(210,10))
31. sunrayNW.setBorderColor('yellow')
32. sunrayNW.setBorderWidth(6)
34. grass = Rectangle(300, 80, Point(150,160))
35. grass.setFillColor('green')
36. grass.setBorderColor('green')
37. grass.setDepth(75) # must be behind house and tree
39. window = Rectangle(15, 20, Point(130,120))