I know, I know. it's kinda slow (hey that rhymes). But whatever, browser stuff will never get a lot faster... Feel free to change the resolution (res) variable. It's just a trade-off between beatuy and speed
I first programmed it in processing (java-based) and then kinda translated it into scratch. I also wrote a seperate procssing program that would generate 256 images, named 0.png, 1.png, 2.png etc with the corresponding grayscale value and then loaded them into scratch. No, I did not draw 256 different squares in scratch, that would have been ridiculous. Not even mentioning the fact that scratch lacks an RGB color editor. HSV is everything we got