Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
pencil.png
3 changes: 0 additions & 3 deletions .idea/.gitignore

This file was deleted.

10 changes: 0 additions & 10 deletions .idea/autoDrawGUI.iml

This file was deleted.

6 changes: 0 additions & 6 deletions .idea/inspectionProfiles/Project_Default.xml

This file was deleted.

6 changes: 0 additions & 6 deletions .idea/inspectionProfiles/profiles_settings.xml

This file was deleted.

7 changes: 0 additions & 7 deletions .idea/misc.xml

This file was deleted.

8 changes: 0 additions & 8 deletions .idea/modules.xml

This file was deleted.

6 changes: 0 additions & 6 deletions .idea/vcs.xml

This file was deleted.

11 changes: 11 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"python.analysis.autoImportCompletions": false,
"python.analysis.typeCheckingMode": "standard",
"github.copilot.enable": {
"*": false,
"plaintext": false,
"markdown": false,
"scminput": false,
"python": true
}
}
Binary file added geo/__pycache__/basic.cpython-313.pyc
Binary file not shown.
Binary file added geo/__pycache__/triangles.cpython-313.pyc
Binary file not shown.
75 changes: 32 additions & 43 deletions geo/basic.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,57 +2,46 @@

blk = (0,0,0)

def rect(height, length, fill, source):
t = turtle.Turtle()
def rect(height: int, length: int, fill: bool, source):
rt = turtle.Turtle()
rt.hideturtle()
rt.penup()
rt.goto(0, 0)
rt.setheading(0)
rt.pendown()
rt.speed(0)
if fill and source:
rt.color(source)
rt.begin_fill()
else:
rt.color(source if source else blk)
for _ in range(2):
rt.forward(length)
rt.left(90)
rt.forward(height)
rt.left(90)
if fill and source:
rt.end_fill()



def carr(cote : int, fill, source):
ct = turtle.Turtle()
ct.speed(0)
if source == None:
t.color(blk)
ct.color(blk)
elif fill == True and bool(source) == True:
fcolor = source
t.color(fcolor)
t.begin_fill()

t.forward(length)
t.left(90)
t.forward(height)
t.left(90)
t.forward(length)
t.left(90)
t.forward(height)
if fill:
t.end_fill()


def carr(cote, fill, source):
t = turtle.Turtle()
if source == None:
t.color(blk)
elif fill == True and bool(source) == True:
fcolor = source
t.color(fcolor)
t.begin_fill()
ct.color(fcolor)
ct.begin_fill()

for x in range(0, 5):
t.forward(cote)
t.left(90)
ct.forward(cote)
ct.left(90)
if fill == True:
t.end_fill()
ct.end_fill()


def triang(cote, fill, source):
t = turtle.Turtle()
if source == None:
t.color(blk)
elif fill == True and bool(source) == True:
fcolor = source
t.color(fcolor)
t.begin_fill()

for x in range(1, 4):
t.forward(cote)
t.left(360 / 3)
if fill == True:
t.end_fill()


def circle(rad, fill, source):
t = turtle.Turtle()
Expand Down
16 changes: 9 additions & 7 deletions geo/triangles.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,21 @@
blk = (0,0,0)

def tri_equi(cote, fill, source):
t = turtle.Turtle()
trit = turtle.Turtle()
trit.speed(0)
trit.hideturtle()
if source == None:
t.color(blk)
trit.color(blk)
elif fill == True and bool(source) == True:
fcolor = source
t.color(fcolor)
t.begin_fill()
trit.color(fcolor)
trit.begin_fill()

for x in range(1, 4):
t.forward(cote)
t.left(360 / 3)
trit.forward(cote)
trit.left(360 / 3)
if fill == True:
t.end_fill()
trit.end_fill()

def tri_iso(side, base, fill, source):
t = turtle.Turtle()
Expand Down
117 changes: 0 additions & 117 deletions gui.py

This file was deleted.

Loading