Untitled

 avatar
unknown
plain_text
a year ago
770 B
5
Indexable
from turtle import *
import city
speed(100)

def sun():
    penup()
    color('yellow')
    goto(150,150)
    pendown()
    begin_fill()
    for i in range(50):
     circle(90, 50)
     left(90)
    end_fill()

def background():
    penup()
    goto(-350,300)
    color("skyblue")
    pendown()
    begin_fill()
    for i in range(2):
        forward(800)
        right(90)
        forward(500)
        right(90)
    end_fill()

def grass():
    penup()
    goto(-350,-300)
    color("lightgreen")
    pendown()
    begin_fill()
    for i in range(2):
        forward(800)
        left(90)
        forward(200)
        left(90)
    end_fill()


background()
grass()
sun()
setheading(0)
city.home()
city.doc()
exitonclick()
Leave a Comment