Why is this block not working?

This is a script that I am using for this project Pixelart for games by parabud | Snap! Build Your Own Blocks and it does not work.

I’m not sure what this is supposed to do; could you be more specific about “does not work”? What’s it supposed to do, and what does it do?

I do notice that you use fractional pen sizes. A pen size of 1 means just one screen pixel wide; you can’t get narrower than that. (If you’re using a 4K or better monitor, a pen size of 1 means two pixels wide, so you can sensibly set the pen size to 0.5.)

It is supposed to redraw the art.

Also I just changed it to this and now it just works. I don’t know if it fully works but it seems to work. (Update: it is not good at colors)