From a87a70d1e3bab85ab13b20bbe85bbca6e7ba860b Mon Sep 17 00:00:00 2001 From: AYUSH GUPTA <98117063+ayush-1123@users.noreply.github.com> Date: Sat, 22 Oct 2022 03:05:46 +0530 Subject: [PATCH] Create Turtle Graphics Pattern PATTERN --- Turtle Graphics Pattern | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 Turtle Graphics Pattern 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) +