Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Mandelbrot

Public visualization

Viewing a saved revision (read-only)

80902cf68d70467189342c279494c882

Mandelbrot

0 stars0🌍 Public
KKristin Baumann
Last edited Apr 23, 2024
Created on Apr 23, 2024
Forked from Circles with D3

This visualization renders a slice of the Mandelbrot set as a 360 by 360 grid of pixels on an HTML canvas. Each pixel’s color is computed by iterating the complex function `z = z² + c` for up to 200 iterations; colors, from black to a teal gradient, are derived from the iteration count using `d3.scaleLinear`. The visualization uses Svelte components (`App.svelte`, `Canvas.svelte`, `Pixel.svelte`) where the canvas context manages drawing and invalidation for rendering.

AI-generated description

First Test