I made a rectangle filler and I thought that a triangle filler would be similar. I used the same algorithm, of updating the points to redraw the triangle, eventually filling it up. I overcomplicated this so much.
All by me except the |point towards (x) , (y)| block, which was by @OrangeAwesome