Skip to main content
100%

Julia Set

✓ Published0🌍 Public
KKristin Baumann
Last edited Feb 21, 2025
Created on Apr 23, 2024
Forked from Mandelbrot

This example renders a Julia set fractal on a canvas, using a teal-to-black color scale to depict iteration counts across a 360×360 grid. The visualization animates smoothly by tweening a pixel index through Svelte’s `tweened` motion, recalculating the fractal values as the index progresses. Each pixel is drawn as a 1×1 rectangle via the Canvas API, with Svelte’s context system coordinating registration and invalidation between the `Canvas` and `Pixel` components, while d3 scales map coordinates and iteration values.

AI-generated description

Math from The Coding Train: https://www.youtube.com/watch?v=fAsaSkmbF5s

MIT Licensed

Similar vizzes