Skip to content

Add standalone Mandelbrot set HTML renderer - #14

Open
Copilot wants to merge 1 commit into
mainfrom
copilot/add-mandelbrot-renderer
Open

Add standalone Mandelbrot set HTML renderer#14
Copilot wants to merge 1 commit into
mainfrom
copilot/add-mandelbrot-renderer

Conversation

Copilot AI commented Aug 7, 2026

Copy link
Copy Markdown

Adds public/mandelbrot.html, a self-contained canvas + JS renderer for the Mandelbrot set.

Features:

  • Smooth escape-time coloring (HSV based)
  • Mouse wheel zoom centered on cursor
  • Click-drag pan, plus touch pinch-zoom / pan support
  • Reset button and live HUD (center coords, zoom level, iteration count)
  • Chunked rendering (via setTimeout) so the UI stays responsive on large canvases
  • Cardioid/period-2 bulb quick-check to skip full iteration for known in-set points

No build step needed — open the file directly in a browser or serve it as a static asset (it lives in public/ alongside the existing index.html).

Verified locally with a headless browser: initial render, zoom interaction, and no console errors (aside from an unrelated missing favicon request).

Adds public/mandelbrot.html, a self-contained canvas + JS renderer with
smooth escape-time coloring, mouse wheel zoom, click-drag pan, touch
pinch/pan support, and a reset button.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant