diff --git a/Turtle Graphics Pattern b/Turtle Graphics Pattern new file mode 100644 index 0000000..7f99bf3 --- /dev/null +++ b/Turtle Graphics Pattern @@ -0,0 +1,22 @@ +# Turtle Graphic Pattern Using Python + +import turtle +import colorsys + +t = turtle.Turtle() +s = turtle.Screen() +s.bgcolor('black') +t.speed(0) +n=100 +h=0 +for i in range(360): + c = colorsys.hsv_to_rgb(h,1,0.8) + h+= 1/n + t.color(c) + for j in range(2): + t.left(250) + t.forward(i*3) + for v in range(3): + t.left(20) + t.forward(22) +