Okay. That is slow… Let’s make it faster!
So the main problem we have is that we’re interpreting the code. For every single pixel, for every line of code, we’re doing a few housekeeping things and making at least one function call. For a 400x400 image with just 10 lines of code, that’s 1.6M function calls. Like I said, slow.
So let’s make it faster!
My first idea? Transpile it to Javascript!





