Go to TurboWarp for better performance https://turbowarp.org/527876675 Green-flag and adjust resolution divisor till it ran smooth
It's part of python code that I wrote to render a gif of this picture being ported into Scratch. Ran slow though :/ https://u.cubeupload.com/Kouzeru/sleepy.gif