{"id":35775740,"url":"https://github.com/jo56/fractal-madness","last_synced_at":"2026-06-11T20:01:50.639Z","repository":{"id":332412947,"uuid":"1114178311","full_name":"jo56/fractal-madness","owner":"jo56","description":"A GPU-accelerated fractal visualizer built with Rust and WebGPU compiled to WebAssembly.","archived":false,"fork":false,"pushed_at":"2026-02-04T05:11:01.000Z","size":729,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-02-04T16:27:16.175Z","etag":null,"topics":["fractal","mandlebrot","rust","wasm","webgpu","wgpu"],"latest_commit_sha":null,"homepage":"https://fractal-madness.pages.dev/","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jo56.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-12-11T02:30:00.000Z","updated_at":"2026-02-04T05:14:42.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/jo56/fractal-madness","commit_stats":null,"previous_names":["jo56/fractal-madness"],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/jo56/fractal-madness","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jo56%2Ffractal-madness","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jo56%2Ffractal-madness/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jo56%2Ffractal-madness/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jo56%2Ffractal-madness/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jo56","download_url":"https://codeload.github.com/jo56/fractal-madness/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jo56%2Ffractal-madness/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34215254,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-11T02:00:06.485Z","response_time":57,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["fractal","mandlebrot","rust","wasm","webgpu","wgpu"],"created_at":"2026-01-07T05:00:25.203Z","updated_at":"2026-06-11T20:01:50.633Z","avatar_url":"https://github.com/jo56.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Fractal Madness\n\n\u003cdiv align=\"center\"\u003e\n          \u003ca href=\"https://fractal-madness.pages.dev/\" target=\"_blank\"\u003e\n          \u003cimg src=\"assets/fractal-madness-preview.png\" alt=\"fractal madness preview\"\u003e\n          \u003c/a\u003e\n      \u003cbr\u003e\n  \u003c/div\u003e\n\u003cbr\u003e\n\nA GPU-accelerated fractal visualizer built with Rust and WebGPU, compiled to WebAssembly for browser deployment.\n\n## Features\n\n- **9 Fractal Types**:\n  - *Classic Escape-Time*: Mandelbrot, Tricorn, Celtic, Burning Ship\n  - *Julia Variants*: Julia, Buffalo Julia, Celtic Julia\n  - *Advanced*: Newton (root-finding), Phoenix (memory-based)\n- **26 Color Schemes**: Classic, Fire, Ocean, Rainbow, Grayscale, Electric, Neon, Sunset, Forest, Lava, Ice, Plasma, Cosmic, Autumn, Matrix, Vintage, Candy, Metal, Toxic, Aurora, Desert, Deep Sea, Magma, B\u0026W Bands, Psychedelic, Thermal\n- **Color Modifiers**: Smooth coloring, Invert colors, Color offset effects\n- **Interactive Controls**: Pan with mouse drag, zoom with scroll wheel\n- **Real-time Parameters**: Adjust iterations, power, escape radius\n- **Julia Set Explorer**: Adjust the complex constant c in real-time with 10 presets (Classic, Dragon, San Marco, Siegel Disk, Dendrite, Spiral, Douady Rabbit, Snowflake, Galaxies, Lightning)\n- **58+ Location Presets**: Curated locations across all fractal types\n- **Per-Fractal Memory**: Color schemes and settings remembered per fractal type\n- **Performance Warnings**: Dynamic warnings for computationally expensive settings\n- **Retro UI Theme**: Windows 95-style aesthetic with VT323/Press Start 2P fonts and resizable control panel\n\n## Tech Stack\n\n- **Rust** - Core logic and fractal computation\n- **wgpu** - WebGPU/WebGL2 graphics abstraction\n- **egui** - Immediate mode GUI\n- **wasm-pack** - Rust to WebAssembly compilation\n- **Vite** - Frontend build tool\n\n## Requirements\n\n- [Rust](https://rustup.rs/) (with `wasm32-unknown-unknown` target)\n- [wasm-pack](https://rustwasm.github.io/wasm-pack/installer/)\n- [Node.js](https://nodejs.org/) (v18+)\n\n## Quick Start\n\n```bash\n# Install Rust WASM target\nrustup target add wasm32-unknown-unknown\n\n# Install wasm-pack\ncargo install wasm-pack\n\n# Install Node dependencies\nnpm install\n\n# Development (builds WASM and starts dev server)\nnpm run dev\n\n# Production build\nnpm run build\n```\n\nOpen http://localhost:5173 in a modern browser.\n\n## Project Structure\n\n```\nfractal-madness/\n├── src/                    # Rust source\n│   ├── lib.rs              # WASM entry point\n│   ├── renderer.rs         # GPU rendering pipeline\n│   ├── webgpu.rs           # WebGPU initialization\n│   ├── ui.rs               # egui control panel\n│   ├── input.rs            # Mouse input handling\n│   ├── color.rs            # Color scheme definitions\n│   └── fractal/            # Fractal implementations\n│       ├── mod.rs          # Module exports\n│       ├── mandelbrot.rs\n│       ├── julia.rs\n│       ├── burning_ship.rs\n│       ├── tricorn.rs\n│       ├── celtic.rs\n│       ├── buffalo.rs\n│       ├── newton.rs\n│       └── phoenix.rs\n├── shaders/\n│   ├── fractal.wgsl        # Main fractal computation shader\n│   ├── fullscreen.wgsl     # Fullscreen quad vertex shader\n│   └── display.wgsl        # Display/output shader\n├── web/                    # Frontend\n│   ├── index.html\n│   ├── main.ts\n│   ├── style.css           # Windows 95-style CSS theme\n│   └── public/             # Static assets\n│       ├── favicon.svg\n│       ├── favicon.ico\n│       └── site.webmanifest\n├── pkg/                    # WASM build output (generated)\n└── dist/                   # Production build (generated)\n```\n\n## Browser Compatibility\n\nUses WebGL2 backend for broad compatibility. Tested on:\n- Chrome 90+\n- Firefox 89+\n- Edge 90+\n- Safari 15+\n\n## Controls\n\n| Action | Input |\n|--------|-------|\n| Pan | Click and drag |\n| Zoom | Mouse wheel |\n| Reset | \"Reset View\" button |\n\n## Parameters\n\n| Parameter | Range | Notes |\n|-----------|-------|-------|\n| Iterations | 10 - 10,000 | Logarithmic slider |\n| Power | 2.0 - 8.0 | Enables Multibrot variants (z³, z⁴, z⁵) |\n| Escape Radius | 2.0 - 100.0 | Logarithmic slider |\n| Julia Real | -2.0 to 2.0 | For Julia-type fractals only |\n| Julia Imaginary | -2.0 to 2.0 | For Julia-type fractals only |\n| Zoom | 1e-10 to 1e10 | Logarithmic scale |\n\n## Performance Notes\n\n- **Newton fractals** are computationally expensive (~3.5x cost vs standard fractals)\n- **Phoenix fractals** have moderate overhead (~1.5x cost)\n- The UI displays warnings when iteration counts exceed recommended thresholds\n\n### Per-Fractal Warning Thresholds\n\n| Fractal Type | Warning Threshold |\n|--------------|-------------------|\n| Newton | 140 iterations |\n| Phoenix | 330 iterations |\n| Buffalo Julia / Celtic Julia | 400 iterations |\n| Celtic | 430 iterations |\n| Tricorn / Burning Ship | 450 iterations |\n| Mandelbrot / Julia | 500 iterations |\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjo56%2Ffractal-madness","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjo56%2Ffractal-madness","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjo56%2Ffractal-madness/lists"}