import turtle
turtle.Screen().bgcolor("black")
t = turtle.Turtle()
t.speed(10)
t.pensize(10)
t.penup()
def drawA():
t.setposition(30,-110)
t.pendown()
t.begin_fill()
t.color("red")
t.pensize(10)
t.pencolor("white")
t.forward(23)
t.backward(123)
t.left(60)
t.backward(220)
t.right(60)
t.backward(100)
t.right(117)
t.backward(710)
t.right(63)
t.backward(110)
t.right(90)
t.backward(510)
t.right(90)
t.backward(100)
t.right(90)
t.backward(70)
t.end_fill()
t.penup()
def drawtriangle():
t.pensize(10)
t.setposition(53,-40)
t.pendown()
t.begin_fill()
t.color("black")
t.pencolor("white")
t.right(90)
t.forward(100)
t.right(115)
t.forward(250)
t.right(157)
t.forward(227)
t.end_fill()
drawA()
drawtriangle()
turtle.done()
0 Comments