Vous êtes sur la page 1sur 3

import turtle

turtle.shape("turtle")
turtle.bgcolor("black")
turtle.color("pink")
turtle.width(5)
turtle.speed(1.8)

def drawM():
turtle.left(90)
turtle.forward(100)
turtle.right(135)
turtle.forward(45)
turtle.left(95)
turtle.forward(45)
turtle.right(140)
turtle.forward(100)
drawM()

def drawI():
turtle.color("white")
turtle.penup()
turtle.left(90)
turtle.forward(50)
turtle.pendown()
turtle.left(90)
turtle.forward(90)
drawI()

def drawN():
turtle.color("pink")
turtle.penup()
turtle.right(90)
turtle.forward(50)
turtle.pendown()
turtle.right(90)
turtle.forward(90)
turtle.left(180)
turtle.forward(90)
turtle.right(150)
turtle.forward(90)
turtle.left(150)
turtle.forward(90)
drawN()

def drawT():
turtle.color("white")
turtle.penup()
turtle.right(90)
turtle.forward(50)
turtle.pendown()
turtle.forward(90)
turtle.backward(45)
turtle.right(90)
turtle.forward(100)
drawT()

#1004
#1
turtle.penup()
turtle.goto(-150, -100)
turtle.right(45)
turtle.pendown()
turtle.backward(50)
turtle.forward(50)
turtle.left(90)
turtle.penup()
turtle.forward(50)
turtle.pendown()

#0
def drawCircle():
for index in range(360):
turtle.forward(0.4)
turtle.left(1)
drawCircle()

#0
turtle.penup()
turtle.forward(50)
turtle.pendown()
drawCircle()
turtle.penup()
turtle.forward(80)

#4
turtle.pendown()
turtle.left(90)
turtle.forward(50)
turtle.backward(25)
turtle.left(90)
turtle.forward(25)
turtle.right(90)
turtle.forward(25)
turtle.penup()

turtle.done()

turtle.turtlesize(3,3,3)
turtle.color("#f44298")

turtle.penup()
turtle.goto(-150,-150)
turtle.pendown()
turtle.speed(0)

def drawSquare(lengthOfSide):
for index in range(4):
turtle.forward(lengthOfSide)
turtle.left(360 / 4)
for num in range(32):
turtle.begin_fill()
drawSquare(100)
turtle.end_fill()
turtle.left(360 /32)

turtle.color("#b342f4")
turtle.penup()
turtle.goto(300,300)
turtle.pendown()
turtle.speed(0)

def drawSquare(lengthOfSide):
for index in range(4):
turtle.forward(lengthOfSide)
turtle.left(360 / 4)
for num in range(32):
turtle.begin_fill()
drawSquare(100)
turtle.end_fill()
turtle.left(360 /32)

turtle.color("#e8f442")
turtle.penup()
turtle.goto(-450,350)
turtle.pendown()
turtle.speed(0)

def drawSquare(lengthOfSide):
for index in range(4):
turtle.forward(lengthOfSide)
turtle.left(360 / 4)
for num in range(32):
turtle.begin_fill()
drawSquare(100)
turtle.end_fill()
turtle.left(360 /32)

while True:
turtle.bgcolor("#80f442")
turtle.bgcolor("#d9f442")
turtle.bgcolor("#f4b042")
turtle.bgcolor("#f4428c")