Have you ever made a pixel art, and wondered how many pixels were in it?
Well here is a very simple way to figure it out!
Have a custom block for the “pixel” inside of each of the color custom blocks. (Hopefully that makes sense)
Make a variable/value and name it “pixels created”.
Insert that in the pixel custom block with
[Increase {pixels created} by 1] inside of it.
This is cool! I will use it if I ever will make a pixel art. If not, I am sure that you could use it for another purpose! I use a similar code sometimes when I do trail art to keep track of what I have to set the “Repeat times”-block to. Thanks for sharing this!