Featured Post

Data Science Concepts

Python Turtle - Draw Olympic Ring In Python Turtle Graphics | Olympic Symbol By #BKTutorial

 






Source Code:

#Olympic Rings

import turtle
t=turtle
t.title("Olympic Rings")
t.speed(1)
t.setup(800, 500)
t.pensize(5)

#Black Ring
t.pencolor("black")
t.circle(80)

#Blue Ring
t.penup()
t.goto(-200, 0)
t.pendown()
t.pencolor("blue")
t.circle(80)

#Red Ring
t.penup()
t.goto(200, 0)
t.pendown()
t.pencolor("red")
t.circle(80)

# Yellow Ring
t.penup()
t.goto(-100, -100)
t.pendown()
t.pencolor("yellow")
t.circle(80)

#Green Ring
t.penup()
t.goto(100, -100)
t.pendown()
t.pencolor("green")
t.circle(80)

t.hideturtle()
t.exitonclick()



Comments