From 230f72eb9dce42775a36ddcbf385b54d0cbe0abc Mon Sep 17 00:00:00 2001 From: Aminah Date: Tue, 22 Oct 2024 13:55:50 -0400 Subject: [PATCH] I submitted my work initially in README.md and a f ile I created called README.py. We used mv to copy my work from README.py to the correct folder drawing.py. We eliminated the doc strings from the middle the code because the creation of README.py mixed all of my submissions together. I deleted superfluous code from my drawing and added input() to keep my drawing open and resubmitted the work. --- README.md | 27 ++++--------- README.py | 109 ----------------------------------------------------- drawing.py | 82 ++++++++++++++++++++++++++++++++++++---- 3 files changed, 82 insertions(+), 136 deletions(-) delete mode 100644 README.py diff --git a/README.md b/README.md index aee1fea..6ae1944 100644 --- a/README.md +++ b/README.md @@ -1,21 +1,10 @@ -# (Drawing project) -( -This is the README file for your drawing project. -Replace all the text in parentheses with your own text. -It's written in a simple language called Markdown, -which allows basic formatting. -) +# drawing.py +# ---------- +# By __Aminah Raysor___________ +# +[I would like to create my own versiton of MC Escher's lithograph "Relativity." The staircase +that continues on forever. I would like to create multiple dimensions of flat rectangles, iterate, and animate them, so they create movement. +# I will draw different sizes of flat rectangles stacked on top of each other using turtle and superturtle, and draw function to change the colors and widths of the lines. +I will iterate by changing the sizes of the rectangles. I don't know the exact functions yet, because I need to play around with it. -## Description - -(Describe your goal for this project. If you want to link to an -image, move the image to this directory, and then use the following syntax: - -![Description](filename.png) - -) - -## Planning - -(Include your planning here, including your project milestone.) diff --git a/README.py b/README.py deleted file mode 100644 index 6695adf..0000000 --- a/README.py +++ /dev/null @@ -1,109 +0,0 @@ - -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 \ No newline at end of file diff --git a/drawing.py b/drawing.py index 3ab8bda..88ffd6f 100644 --- a/drawing.py +++ b/drawing.py @@ -1,10 +1,76 @@ -# drawing.py -# ---------- -# By __Aminah Raysor___________ -# -[I would like to create my own versiton of MC Escher's lithograph "Relativity." The staircase -that continues on forever. I would like to create multiple dimensions of flat rectangles, iterate, and animate them, so they create movement. -# I will draw different sizes of flat rectangles stacked on top of each other using turtle and superturtle, and draw function to change the colors and widths of the lines. -I will iterate by changing the sizes of the rectangles. I don't know the exact functions yet, because I need to play around with it.Here is an example](/var/folders/8h/wtt3j50j7hz52xh17s82vjth0000gn/T/TemporaryItems/NSIRD_screencaptureui_mMXMPP/Screenshot\ 2024-09-18\ at\ 11.15.26 AM.png ) 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() + + + + +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) +input() + + +