Drag the sliders. Press "r" or click the flag to generate a random arc. Click/tap the screen to reveal how the arc is built.
A script I quickly put together to demonstrate how arcs could be efficiently filled with no more than two stamps. The filler picks from 10 different costumes, depending on what the angle measure of the arc is. Then, two stamps of the chosen costume are enough to exactly cover the range of the arc. The inner radius is an entirely separate problem. It can be controlled through the fisheye effect, but the control isn't intuitive. With some experimentation and some investigation of Scratch's source code I was able to find a way to calculate a suitable fisheye setting for a given inner radius. Unfortunately at radius 0 the effect breaks down, because the fisheye effect gets set to -Infinity. For this reason, as of August 25, 2024 I've also included a filler for circular sectors (slices of pie) which uses different costumes. So now you can recreate BotW/TotK's stamina meter or something I guess Update August 25, 2024 - Included filler for circular sectors which uses different costumes, also optimized the code based on a new discovery by @GarboMuffin that the "stop this script" block causes all custom block parameters to be re-evaluated. #Math #Pen #Stamp #Filler