Skip to content

Commit

Permalink
v5
Browse files Browse the repository at this point in the history
  • Loading branch information
neverfriendme committed Aug 20, 2024
1 parent 1d1c42a commit e5316bd
Show file tree
Hide file tree
Showing 3 changed files with 75 additions and 32 deletions.
2 changes: 1 addition & 1 deletion Python.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@ <h1 style="color:white;" name="greet">Python templates</h1>
</a>
<a href="Files/Basic Terminal Calculator.py">Basic Terminal Calculator</a>
<a href="Files/Hour calculator.py">Minutes to hours</a>
<a href="Shape-maker.zip/Shapemakerdownload.html">Shape-maker version 4</a>
<a href="Shape-maker.zip/Shapemakerdownload.html">Shape-maker version 5</a>
</body>
</html>
72 changes: 44 additions & 28 deletions Shape-maker.zip/Shape-maker.py
Original file line number Diff line number Diff line change
@@ -1,30 +1,46 @@
from turtle import *
__name__ == "__main__"

print("Shape maker v4 pre-release")
print("Exit\nForm\nlistfunc\nhelp")
WF = input("")
if WF == "Form.circ":
import funcs
funcs.Form_cric()
elif WF == "Form.octa":
import funcs
funcs.Form_octa()
elif WF == "Form.nona":
import funcs
funcs.Form_nona()
elif WF == "Exit":
print("exiting")
exit()
elif WF == "listfunc.[Form]":
import funcs
funcs.listfunc_form()
elif WF == "Form.hexa":
import funcs
funcs.Form_hexa()
elif WF == "Form.dode":
import funcs
funcs.Form_dode()
elif WF == "help" or "?h":
import funcs
funcs.help()
Version = "Version 5"
print(Version)
print("Exit\nForm\nlistfunc\nspecial\nhelp")
if 1 == 1:
while True:
WF = input("")
if WF == "-v":
print(Version)
elif WF == "Form.circ":
import funcs
funcs.Form_cric()
elif WF == "Form.octa":
import funcs
funcs.Form_octa()
elif WF == "Form.nona":
import funcs
funcs.Form_nona()
elif WF == "Exit":
print("exiting")
exit()
elif WF == "listfunc.[Form]":
import funcs
funcs.listfunc_form()
elif WF == "listfunc.[special]":
import funcs
funcs.listfunc_spec()
elif WF == "Form.hexa":
import funcs
funcs.Form_hexa()
elif WF == "Form.dode":
import funcs
funcs.Form_dode()
elif WF == "Form.tria":
import funcs
funcs.Form_tria()
elif WF == "Form.squa":
import funcs
funcs.Form_squa()
elif WF == "special.special1":
import funcs
funcs.Form_spec1()
elif WF == "help" or "?h":
import funcs
funcs.help()
33 changes: 30 additions & 3 deletions Shape-maker.zip/funcs.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from turtle import *

import math

def Form_cric():
if 1 == 1:
Expand All @@ -19,10 +19,10 @@ def Form_nona():
left(50)
forward(90)
def listfunc_form():
print(".nona\n.circ\n.octa\n.hexa\n.dode\nMore updates coming soon!")
print(".nona\n.circ\n.octa\n.hexa\n.dode\n.tria\n.squa\nMore updates coming soon!")

def help():
print("listfunc.[Function] not listfunc.Function\nhelp or ?h to get Help")
print("listfunc.[Function] not listfunc.Function\n-v will display the version\nhelp or ?h to get Help")

def Form_hexa():
area = 3/3 * 10 * 20
Expand All @@ -40,7 +40,34 @@ def Form_dode():
left(30)
right(area * 1.6)

def Form_tria():
area = 1/2 * 600
if 1 == 1:
while True:
forward(area)
left(60)
right(area)

def Form_squa():
area = 10/20 * 300
if 1 == 1:
while True:
forward(area * 2)
left(60)
right(area)
# --special--
def listfunc_spec():
print(".special1\nMore updates coming soon!")

def Form_spec1():
side1 = 5/math.pi
side2 = 100/math.pi
if 1 == 1:
while True:
forward(side2 * 3)
left(side1 * 4)
right(side2 * 4)
forward(side1 * 3)



0 comments on commit e5316bd

Please sign in to comment.