Skip to content

Commit

Permalink
07 may
Browse files Browse the repository at this point in the history
  • Loading branch information
dheerajrao20 committed May 7, 2022
1 parent 4bc97a6 commit 27a8bf4
Show file tree
Hide file tree
Showing 20 changed files with 173 additions and 0 deletions.
11 changes: 11 additions & 0 deletions Spiral_12/code.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import turtle
turtle.hideturtle()
turtle.pencolor("red")
turtle.bgcolor("black")
turtle.pensize(1)
turtle.speed(0)
for i in range(10, 280):
turtle.forward(i)
turtle.left(100)
turtle.pencolor("red")
turtle.done()
Binary file added Spiral_12/pro 12.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
11 changes: 11 additions & 0 deletions Spiral_13/code.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import turtle
turtle.hideturtle()
turtle.bgcolor("black")
colors = ["red", "purple", "blue", "green", "orange", "yellow"]
turtle.speed(0)
for i in range(80):
turtle.pencolor(colors[i%6])
turtle.pensize(i%80 +1)
turtle.forward(i)
turtle.left(59)
turtle.done()
Binary file added Spiral_13/pro 13.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
22 changes: 22 additions & 0 deletions Spiral_14/code.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
import turtle
turtle.hideturtle()
turtle.speed(0)
turtle.pensize(2)
turtle.pencolor("blue")
turtle.bgcolor("black")
def shape(angle, side, limit):
rd = 200
turtle.forward(side)
if side%(rd*2) == 0:
angle += 2
elif side % rd == 0:
angle -= 2
turtle.right(angle)
side += 7
if side < limit:
shape(angle, side, limit)
angle = 179
side = 1
limit = 1000
shape(angle, side, limit)
turtle.done()
Binary file added Spiral_14/pro 14.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
22 changes: 22 additions & 0 deletions Spiral_15/code.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
import turtle
turtle.hideturtle()
turtle.speed(0)
turtle.pensize(2)
turtle.pencolor("blue")
turtle.bgcolor("black")
def shape(angle, side, limit):
rd = 200
turtle.forward(side)
if side%(rd*2) == 0:
angle += 2
elif side % rd == 0:
angle -= 2
turtle.right(angle)
side += 7
if side < limit:
shape(angle, side, limit)
angle = 179
side = 1
limit = 1000
shape(angle, side, limit)
turtle.done()
Binary file added Spiral_15/pro 15.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
22 changes: 22 additions & 0 deletions Spiral_16/code.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
import turtle
turtle.hideturtle()
turtle.speed(0)
turtle.pensize(2)
turtle.bgcolor("black")
turtle.pencolor("blue")
def shape(angle, side, limit):
rd = 200
turtle.forward(side)
if side%(rd*2) == 0:
angle += 2
elif side % rd == 0:
angle -= 2
turtle.right(angle)
side += 2
if side < limit:
shape(angle, side, limit)
angle = 119
side = 0
limit = 9000
shape(angle, side, limit)
turtle.done()
Binary file added Spiral_16/pro 16.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
22 changes: 22 additions & 0 deletions Spiral_17/code.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
import turtle
turtle.hideturtle()
turtle.speed(0)
turtle.pensize(2)
turtle.pencolor("blue")
turtle.bgcolor("black")
def shape(angle, side, limit):
rd = 200
turtle.forward(side)
if side%(rd*2) ==0:
angle += 2
elif side % rd == 0:
angle -= 2
turtle.right(angle)
side += 2
if side < limit:
shape(angle, side, limit)
angle = 135
side = 1
limit = 600
shape(angle, side, limit)
turtle.done()
Binary file added Spiral_17/pro 17.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
16 changes: 16 additions & 0 deletions Spiral_18/code.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import turtle
turtle.hideturtle()
turtle.speed(0)
turtle.pensize(2)
turtle.bgcolor("black")
turtle.pencolor("blue")
def star(leftangle, rightangle, distance):
for i in range(5):
turtle.left(leftangle)
turtle.forward(distance)
turtle.right(rightangle)
turtle.forward(distance)
for i in range(89):
star(58, 130, 150)
turtle.right(89)
turtle.done()
Binary file added Spiral_18/pro 18.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
16 changes: 16 additions & 0 deletions Spiral_19/code.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import turtle
turtle.hideturtle()
turtle.speed(0)
turtle.pensize(2)
turtle.pencolor("blue")
turtle.bgcolor("black")
def star(leftangle, rightangle, distance):
for i in range(5):
turtle.left(leftangle)
turtle.forward(distance)
turtle.right(rightangle)
turtle.forward(distance)
for i in range(89):
star(50, 139, 150)
turtle.right(89)
turtle.done()
Binary file added Spiral_19/pro 19.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
16 changes: 16 additions & 0 deletions Spiral_20/code.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import turtle
turtle.hideturtle()
turtle.pencolor("blue")
turtle.bgcolor("black")
turtle.speed(0)
x = 0
turtle.penup()
turtle.goto(0, 50)
turtle.pendown()
while x < 120:
for i in range(6):
turtle.forward(200)
turtle.right(61)
turtle.right(11.11)
x += 1
turtle.done()
Binary file added Spiral_20/pro 20.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
15 changes: 15 additions & 0 deletions Spiral_21/code.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import turtle
turtle.pencolor("blue")
turtle.bgcolor("black")
turtle.speed(0)
x = 0
turtle.penup()
turtle.goto(0, 50)
turtle.pendown()
while x<120:
for i in range(60):
turtle.forward(200)
turtle.right(61)
turtle.right(11.11)
x += 1
turtle.done()
Binary file added Spiral_21/pro 21.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 27a8bf4

Please sign in to comment.