Press 0/1 to toggle debug overlay Press Space/Click to place triangle points
This project uses a bunch of technics to split up a triangle in such a way, that it can draw inside a square. Could be useful, if you're making an OSU! clone or sth. IDK. IT IS NOT OPTIMIZED. I tried my best to comment and explain everything, so if you want to write optimizations, feel free. No need to give credits. Line line collision check and point triangle collision check based on: https://www.jeffreythompson.org/collision-detection Triangle filler by: TheLogFather (https://scratch.mit.edu/projects/24828481)