Set the amount of triangles to draw then press space. Click the flag to reset.
Original method by @moonhayul, I made it faster The density that is needed to fully fill in the triangle is calculated before the triangle is drawn, so no unnecessary lines are drawn. This speeds it up a lot because the pen blocks are very slow compared to operator blocks. It's faster on turbowarp, but the timer is broken so you can't see how long it took or the tps.