Press Space to clear the screen (the triangles are being constantly drawn, so they'll re-appear almost immediately)
I created this with no help or references at all. I've been making a game engine using OpenGL and C++, and decided to take a little break for a night and try my hand at writing a graphics engine in Scratch with zero reference or help or anything. So far, I've got a system where I can draw as many triangles as I want at any size and any position! These "meshes" are rendered using vertex and index data, similarly to OpenGL; this method makes it easier to add more shapes if I want to. I store data for which mesh to use, where to draw it, and how large to make it in a huge list and render each object (or as I call them, "Actors") in order starting from 0. The way I "know" which Actor to render and which data to get is by an "actor_stride" variable, that's the number of list items each Actor will use.