BLOG THREE: MADDNESS CONTINUES

Today i made some turtle graphics here’s the code

import turtle

turtle.bgcolor(‘black’)

t = turtle.Turtle()

colors = [‘red’,’dark red’]

for number in range(400):

    t.forward(number+1)

    t.right(89)

    t.pencolor(colors[number%2])

turtle.done()

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top