GODRICH
#css-animation#button#loader#transition#scroll#dashboard#ui#design-trends

01Escape time basics — iterate z = z² + c per pixel and color by escape count

Treat each pixel as a complex c, square and add until it diverges, color by iteration count — the cardioid and bulb draw themselves. The single base image every fractal exploration starts from.

Best forMath-content diagrams, hero backgrounds

CanvasRenderingContext2DcreateImageDatarequestAnimationFrame
Escape time basics — iterate z = z² + c per pixel and color by escape count
Open in a new tab

01 Escape time basics — iterate z = z² + c per pixel and color by escape count — Measured area 32.008% · moving frames 23/23Original by GODRICH · SCSS and React ship in the zip · Mandelbrot Zoom, 9 Ways (Escape-Time, No Library)

The post this demo lives in

Mandelbrot Zoom, 9 Ways (Escape-Time, No Library) - preview of all 9 demosMandelbrot Zoom, 9 Ways (Escape-Time, No Library)Iterate z = z² + c per pixel and count escapes — the Mandelbrot cardioid appears, and every zoom level hides new mini-ma See all demos in this post

If you like this effect - similar demos