USE TURBO MODE just a demo where I tried to make a passable triangle fill program that's still fairly simple. You can use this code if you want, just credit me & link back to this project. I recommend using one of the other projects linked below, though. Odd resolution values above 4 cause horizontal stripes, so it automatically rounds those up to the next even number
I also went ahead and compared it to a few other triangle fill projects, to get an idea of performance (Tests lasted ~60 seconds for each and were done on the same i5-3570/5500xt combo, via google chrome, with minimal background tasks. Tests were done outside of fullscreen and in turbo mode, using the same code to generate points and colors) - this project: - resolution 1: 236 triangles/second - resolution 2: 443/s - resolution 4: 845/s - resolution 8: 1,552/s - resolution 1 turbowarp: 2,995/s - resolution 4 turbowarp: 10,475/s - https://scratch.mit.edu/projects/24828481 - resolution 1: 3,334 triangles/second - resolution 2: 3,813/s - resolution 4: 4,326/s - resolution 8: 4,983/s - resolution 1 turbowarp: 33,807/s - resolution 4 turbowarp: 43,447/s - https://scratch.mit.edu/projects/55619918/ - resolution 1: 15,961 triangles/second - resolution 2: 17,997/s - resolution 4: 22,461/s - resolution 8: 26,821/s - resolution 1 turbowarp: 17,193/s - resolution 4 turbowarp: 22,684/s