Commit 6095e7fb by BellCodeEditor

auto save

parent ca1ac4ee
Showing with 69 additions and 0 deletions
import turtle
import random
turtle.bgcolor()
def a(color1,x,y,color2,r):
turtle.pencolor(color1)
turtle.penup()
turtle.pensize(3)
turtle.goto(x,y)
turtle.pendown()
turtle.fillcolor(color2)
turtle.begin_fill()
turtle.circle(r)
turtle.end_fill()
a("orange",0,-200,"yellow1",200)
a("brown",80,75,"white",35)
a("black",80,75,"black",20)
a("brown",-80,75,"white",35)
a("black",-80,75,"black",20)
def mouth():
turtle.pencolor("brown")
turtle.penup()
turtle.goto(0,-90)
turtle.pendown()
turtle.circle(-120,60)
turtle.left(180)
turtle.circle(120,120)
turtle.seth(0)
mouth()
turtle.hideturtle()
turtle.done()
\ No newline at end of file
import turtle
import random
turtle.bgcolor()
def a(color,x,y):
turtle.pensize()
\ No newline at end of file
import turtle
import random
turtle.bgcolor("red")
def a(r,color,y):
turtle.penup()
turtle.pensize(3)
turtle.fillcolor(color)
turtle.goto(0,y)
turtle.pendown()
turtle.begin_fill()
turtle.circle(r)
turtle.end_fill()
def b():
turtle.penup()
turtle.goto(random.randint(-200,200),random.randint(-200,200))
turtle.pendown()
turtle.dot(20)
a(200,"yellow",-200)
a(150,"red",-150)
a(100,"blue",-100)
a(50,"skyblue",-50)
for i in range(5):
b()
turtle.hideturtle()
turtle.done()
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment