This is a simple triangle filler You can move the points around. Lower accuracy looks better but is slower.
Feel free to use but give me credit. Fills triangles about 10x faster on turbowarp https://turbowarp.org/1001585717 also if you do use it I recommend and accuracy of 5 because it is still pretty sharp but runs smoothly