An improvement on the colour stamp I had installed in my colour typer. Particularly, I’ve made the code neater, and annotated it so that you might be able to figure out what’s going on. I’ll eventually update the colour typer to use this system.
This works almost exactly the same as it did in my colour typer (https://scratch.mit.edu/projects/78387184/), except for that I fixed a glaring mistake that my colour typer had. I didn’t really realise it when I made the colour typer, but stamping the colours used numbers parallel to the hue, saturation, and brightness representation of colour. When I first made it, the only way of printing colour was by RGB. When I implemented HSV, it converted the HSV values to RGB values, which were then, in a way, converted back into HSV values. In this program, I use HSV values as the basis, and convert RGB into HSV instead. tldr; I made the old system too complicated and this makes it much easier.