Skip to content

Instantly share code, notes, and snippets.

View deadandhallowed's full-sized avatar

KBE deadandhallowed

View GitHub Profile
@deadandhallowed
deadandhallowed / polygon_filling.py
Last active February 18, 2018 01:56
Polygon Filling using tkinter, limited tp create_line. Other extensions (numpy, matrix math, etc.) is forbidden.
import math
from tkinter import *
#------------------------ CLASSES ------------------------#
class Pyramid:
# Pyramid class for pyramid objects.
def __init__(self,apex,base1,base2,base3,base4):
# Definition of the five underlying points.
self.apex = apex