Here is my drawing project

I'm not sure if you received the firsst one?
I'm waiting for help with animating the rose drawing to have a sparkle effect or spin around!

TY
This commit is contained in:
Aminah
2024-10-10 12:11:24 -04:00
parent ba32bd971d
commit 85b4b022f7
2 changed files with 114 additions and 2 deletions

109
README.py Normal file
View File

@@ -0,0 +1,109 @@
Hi, I'm not sure if you have received my other submissions. But my first was inspired by ESCHER's
staircase artwork, "relativity" Here is a link: https://www.google.com/search?q=escher+staircase&oq=escher&gs_lcrp=EgZjaHJvbWUqBggCEEUYOzIGCAAQRRg5MgYIARBFGEAyBggCEEUYOzIGCAMQRRg8MgYIBBBFGDwyBggFEEUYPNIBCDM3NDZqMGo3qAIAsAIA&sourceid=chrome&ie=UTF-8
I wanted to make a spiral staircase by manipulating the square iteration code :
def square(side_length):
for _ in range(4):
forward(side_length)
right(90)
color ('blue')
speed(3)
sizes = [40, 80, 120, 160, 200]
for size in sizes:
square(size)
penup()
right(90)
forward(20)
left(90)
pendown()
sizes = [20, 40, 60, 80, 100]
for size in sizes:
square(size)
penup()
right(90)
forward(10)
left(90)
pendown()
But after playing around with it, it started to form the shape of a rose! So now I've gone with that!
from turtle import *
def square(side_length):
for _ in range(4):
forward(side_length)
right (45)
color ('red')
pensize (10)
speed (9)
sizes = [20, 40, 60, 80, 100]
for size in sizes:
square(size)
penup()
right(90)
forward(20)
left(90)
pendown()
square(size)
penup()
right(90)
forward(20)
left(90)
pendown()
square(size)
penup()
right(90)
forward(20)
left(90)
pendown()
square(size)
penup()
right(90)
forward(20)
left(90)
pendown()
square(size)
penup()
right(90)
forward(20)
left(90)
pendown()
from turtle import *
def rectangle(width, height):
for _ in range(2):
forward(width)
right(90)
forward(height)
right(90)
penup()
color('green')
pensize(10)
speed(3)
left(90)
pendown()
rectangle(width = 100, height=100)
penup()
forward(90)
pendown()
rectangle(width=100, height=100)
I'm waiting for your feedback to see if I can animate it in superturtle to give it a beauty and the beast like sparklig effect or
still include some sort of spiral