Amazing pattern in python using turtle module

0

 


Here the source code:-


import turtle

import colorsys

p = turtle.Turtle()

p.speed(0)

wn = turtle.Screen().bgcolor("black")

n=36

h =0

for i in range(0, 360, 4):

	c = colorsys.hsv_to_rgb(h, 1, 0.8)

	h+=1/n

	p.color(c)

	p.seth(i)

	p.circle(200, steps=6)

turtle.done()
Tags

Post a Comment

0Comments

If you have any doubts, please let me know

Post a Comment (0)