creating tricolour badge using turtle python apni programming 2021
import turtle
trt = turtle.Turtle()
scr = turtle.Screen()
scr.setup(850,850)
scr.bgcolor('black')
trt.speed(0)
trt.pensize(5)
colors = ['orange', 'white', 'green']
radius = 150
for color in colors:
for i in range(6):
for j in range(6):
trt.color(color)
trt.circle(radius)
trt.left(10)
radius = radius -50
trt.hideturtle()
turtle.done()
Comments
Post a Comment