Python micro project
Python micro project
ESTD : 08/09/1927
Animation
SUBMITTED BY:
96. Prathamesh
Katkar
97. Aditya Harpale
98. Sumit Kamble
99. Roshan Salve
2024-2025
ACKNOWLEGEMENT
Prathamesh Katkar
Aditya Harpale
Sumit Kamble
Roshan Salve
DIPLOMA
IN
COMPUTER ENGINEERING
Maharashtra State Board Technical Education
“Animation”
In the partial submission of the Diploma in Computer Engineering
Recommended by Maharashtra State Board Technical Education for the
Academic Year
2024-2025
Name of
Sr. Resources
Specification Qty. Remarks
No required
1.0 Rationale:
Site Used:
docs.python.org/3/library/turtle.html
www.geeksforgeeks.org/turtle-programming-python
colorsys documentation
Book used:
and Hughes
Turtle graphics library and its capabilities. We researched color theory and the
was designed to create a spiral pattern with gradually changing colors using
HSV color space.
We implemented the code using nested loops - an outer loop for the main
rotation and an inner loop for creating circular elements. The color transitions
were achieved by incrementing the hue value in the HSV color space. After
increment values) to optimize the visual effect. The final output creates a
Name of
Sr. Resources
Specification Qty. Remarks
No required
PROGRAM:
import turtle
import colorsys
# Initialize turtle
t = turtle.Turtle()
s = turtle.Screen().bgcolor('black')
t.speed(0)
n = 70
h=0
# Animation loop
for i in range(360):
c = colorsys.hsv_to_rgb(h, 1, 0.8)
h += 1/n
t.color(c)
t.left(1)
t.fd(1)
# Draw circles
for j in range(2):
t.left(2)
t.circle(100)
OUTPUT:
8.0 Skill Developed/ Learning outcomes of this Micro-Project: