Bespoke algorithm for drawing triangles on Scratch. The eventual goal is to have a tri-filler that can render small models/maps on vanilla Scratch despite usage of low(er) level hardware - no Turbowarp! If you have any recommendations for performance boosts, please leave them in the comments, anything helps!
Unexpectedly bad in comparison to a simplistic algorithm. Concept and maths originally worked out in p5.js: editor.p5js.org/Argumentative/sketches/WJdGwjb_X