I think I'm getting smarter! ChatGPT says: "Creating a circle from triangles typically involves the concept of trigonometry, which is a branch of mathematics that deals with the relationships between the sides and angles of triangles. The Pythagorean theorem, which relates the lengths of the sides of a right triangle, may also be used in certain cases when working with triangles to create geometric shapes like a circle. However, the overall process of creating a circle from triangles involves geometric principles and trigonometric functions." So, cool! This is a common method of making a circle -- well, a mere approximation. Circles don't exist, remember? It's just too smooth to exist. But before you start going into an exestencial crisis, have fun with this project! I made it have a color per triangle, so you can tell triangle from triangle easier. What this means, though, is that there will be rainbow colors on higher amounts of triangles. You also get the windows logo on four triangles. Once again, this isn't an actual circle, just an irregular polygon with a customisable amount of sides. This is more noticable at the lower triangle counts. This is why the slider doesn't go below three. A 2d shape must have at least 3 sides! 1024 sides/triangles fps be like: (stonks meme but upside down) Sorry for sounding like a nerd, it's just that I am one.
All work done by me for the sake of others.