Press the green flag and drag the points to modify the triangle. You can also play with the precision variable, which modifies the size of the smallest possible disc, and with the transparency variable to see how this is done. Optimization removes all unnecessary disks. You can press the space bar to test the speed of my algorithm.
This is the continuation of my fractal project: https://scratch.mit.edu/projects/1235844831/ I wanted to do what many people do, a script to fill triangles, but I wanted to be original and instead of doing it with lines, I did it with discs, getting smaller and smaller! This, in my opinion, is a representation of the beauty of mathematics. /!\ This project is entirely my own creation. I claim all rights to it. I will report any project that reuses my code, shared after mine, and is not a remix. v0.1: no optimisation v1.0: project shared, optimisation: I deleted the discs in the middle v1.1: another optimisation, reduce the number of discs used