Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- speed(0)
- bgcolor((0,235,260,0.5))
- penup()
- x=-290
- y=100
- setposition(x,y)
- r=220
- setposition(-200,0)
- #this function makes the sky
- def rectangle(color_choice):
- begin_fill()
- color(color_choice)
- for i in range(8):
- forward(400)
- left(90)
- end_fill()
- left(90)
- forward(13)
- right(90)
- for i in range(16):
- r=r-10
- rectangle((r,225,255))
- penup()
- setposition(-190,150)
- def clouds(size):
- for i in range(4):
- pendown()
- right(180)
- color("white")
- begin_fill()
- backward(size)
- right(90)
- circle(size/9,100,0)
- right(90)
- circle(size/5,120,0)
- right(90)
- circle(size/6,146,0)
- right(90)
- circle(size/1.9,30,0)
- end_fill()
- right(216)
- size=size-10
- forward(size)
- def theclouds():
- clouds(60)
- penup()
- setposition(-50,140)
- clouds(30)
- clouds(60)
- penup()
- setposition(-200,100)
- clouds(80)
- penup()
- setposition(-10, 180)
- clouds(30)
- penup()
- setposition(0,0)
- theclouds()
- def cloud_mountain(size):
- for i in range(4):
- pendown()
- right(180)
- color("white")
- begin_fill()
- backward(size)
- right(90)
- circle(size/9,100,0)
- right(90)
- circle(size/5,120,0)
- right(90)
- circle(size/6,146,0)
- right(90)
- circle(size/1.9,30,0)
- end_fill()
- right(216)
- size=size-10
- forward(size)
- def themountainclouds():
- penup()
- home()
- setposition(-10,10)
- pendown()
- cloud_mountain(50)
- penup()
- home()
- setposition(-100,10)
- pendown()
- cloud_mountain(40)
- penup()
- home()
- setposition(110,10)
- pendown()
- cloud_mountain(60)
- themountainclouds()
- speed(0)
- penup()
- setposition(-200,0)
- r=200
- def rectanglerefl(color_choice):
- begin_fill()
- color(color_choice)
- for i in range(8):
- forward(400)
- right(90)
- end_fill()
- right(90)
- forward(13)
- left(90)
- for i in range(16):
- r=r-10
- rectanglerefl((r,225,255))
- penup()
- setposition(-190,-150)
- def cloudsrefl(size):
- for i in range(4):
- pendown()
- right(180)
- color("white")
- begin_fill()
- backward(size)
- left(90)
- circle(size/9,-100,0)
- left(90)
- circle(size/5,-120,0)
- left(90)
- circle(size/6,-146,0)
- left(90)
- circle(size/1.9,-30,0)
- end_fill()
- left(216)
- size=size-10
- backward(size)
- def thecloudsrefl():
- cloudsrefl(60)
- penup()
- setposition(-50,-140)
- cloudsrefl(30)
- cloudsrefl(60)
- penup()
- setposition(-200,-100)
- cloudsrefl(80)
- penup()
- setposition(-10, -180)
- cloudsrefl(30)
- penup()
- setposition(0,0)
- thecloudsrefl()
- def cloud_mountainrefl(size):
- for i in range(4):
- pendown()
- right(180)
- color("white")
- begin_fill()
- backward(size)
- right(90)
- circle(size/9,100,0)
- right(90)
- circle(size/5,120,0)
- right(90)
- circle(size/6,146,0)
- right(90)
- circle(size/1.9,30,0)
- end_fill()
- right(216)
- size=size-10
- forward(size)
- def themountaincloudsrefl():
- penup()
- home()
- setposition(-10,10)
- pendown()
- cloud_mountainrefl(50)
- penup()
- home()
- setposition(-100,10)
- pendown()
- cloud_mountainrefl(40)
- penup()
- home()
- setposition(110,10)
- pendown()
- cloud_mountainrefl(60)
- themountaincloudsrefl()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement