🌍 Public
Viewing a saved revision (read-only)
6bcd964e6dcf4c6bb376f85dd250fdc7
Mandelbrot
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 descriptionMandelbrot Set
Fractal pattern
Math
- Sqrt(-1) is an imaginary number i
- Complex number has a real component (a) and an imaginary component (b): a+bi