This is designed for Turbowarp: https://turbowarp.org/1135788196/?hqpen&fps=60 Tap the screen to generate the image. It takes a while in scratch, but is almost instant in TurboWarp.
Credit to other Mandelbrot set projects for info on how to make the output appear smoother. And credit to the YouTube tutorial by Programming Chaos on how to make a Mandelbrot Set viewer in boilerplate code for the maths. The scratch code is original.