0% found this document useful (0 votes)
27 views1 page

Import Turtle

The document contains a Python script that uses the Turtle graphics library to create a colorful circular pattern. It utilizes the HSV color model to change colors dynamically as it draws. The script sets up the drawing environment and executes a nested loop to generate the design on a black background.

Uploaded by

izirare hamadi
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
27 views1 page

Import Turtle

The document contains a Python script that uses the Turtle graphics library to create a colorful circular pattern. It utilizes the HSV color model to change colors dynamically as it draws. The script sets up the drawing environment and executes a nested loop to generate the design on a black background.

Uploaded by

izirare hamadi
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

import turtle

import turtle as tur


import colorsys as cs
tur.setup(800,800)
turtle.speed(0)
tur.tracer(10)
tur.width(2)
tur.bgcolor("black")
for j in range(25):
for i in range(15):
tur.color(cs.hsv_to_rgb(i/15,j/25,1))
tur.right(90)
tur.circle(200-j*4,90)
tur.left(90)
tur.circle(200-j*4,90)
tur.right(180)
tur.circle(50,24)
tur.hideturtle()
tur.done()

You might also like