This project fills triangles. It works by sorting the y values, then calculating the slope of the lines in a specific order. Then it uses the equations of the lines to make horizontal lines all the way down the triangle. I made this project while I was working on a 3d rendering program that needed triangles.
I found this method on how to fill triangles online, but I coded it myself.