Untitled

mail@pastecode.io avatar
unknown
plain_text
21 days ago
770 B
4
Indexable
Never
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