Explore Mandelbrot, Julia, Burning Ship, Tricorn, Multibrot-3, and Celtic sets beyond 10300× zoom with Material 3 eXtended (
m3x) UI
Hardware-accelerated complex dynamics in your pocket and on your desktop — free, offline, and open source.
-
Hybrid GPU Perturbation + CPU Precision Pipeline:
-
Real-Time GLSL Fragment Shader (
shaders/fractal.frag): Renders interactively at 60–120+ FPS using nativefloat32(GPU f32), automatically escalating to Dekker-Knuthdf64double-float emulation (GPU df64,zoom >= 5e4) up to ~10¹²×(2e12scale) without CPU bottlenecks. -
GPU Perturbation Theory & Series Approximation (
shaders/perturbation.frag,lib/engine/perturbation_solver.dart): Beyonddf64precision (zoom >= 2e12past10³⁰⁰×),AutoandGPU Shadermodes compute a608+-bitBigFixedreference orbit and 3-term Series Approximation in a background isolate, uploading a 48-bithi + lo(256×256,16,384iterations) orbit texture with Zhuoran's rebasing (GPU PT) for sharp ultra-deep zooms. -
Persistent Multi-Isolate CPU
float64Engine (lib/engine/cpu_renderer.dart): Interleaved worker-isolatefloat64renderer (CPU f64) with 1:1 formula and palette parity for manualCPU Float64mode and high-resolution image exports. -
Quality, LOD & Iteration Controls: Four presets —
Performance (0.5x),Balanced (0.75x),Native (1x), andUltra (SSAA)(1.5×scale +2×2rotated-grid supersampling in GLSL) — paired with Auto-Adaptive Progressive LOD,Auto Iterations(80..16,384) or manual control (50..16,384), Brent periodicity checking, and cardioid/period-2 bulb early bailout.
-
Real-Time GLSL Fragment Shader (
-
6 Mathematical Fractals:
-
Mandelbrot (
$z_{n+1} = z_n^2 + c$ ) -
Julia (
$z_{n+1} = z_n^2 + c$ with interactiveRe(c)andIm(c)parameter sliders) -
Burning Ship (
$z_{n+1} = (|\text{Re}(z_n)| + i|\text{Im}(z_n)|)^2 + c$ ) -
Tricorn (Mandelbar,
$z_{n+1} = \overline{z_n}^2 + c$ ) -
Multibrot-3 (
$z_{n+1} = z_n^3 + c$ ) - Celtic
-
Mandelbrot (
-
8 Smooth Continuous Color Palettes:
- System Dynamic (inherits Material You primary & secondary colors from the OS theme), Inferno, Viridis, Ocean, Neon, Monochrome, Twilight, and Ukraine.
- Cyclic 4-stop smoothstep gradients and cosine ramps prevent wrap-around color seams, with toggleable continuous log-log Smooth Coloring and a live Color Phase Shift slider.
-
Curated Landmarks, Bookmarks & Deep-Link / QR Sharing:
- Jump straight into 14 built-in mathematical landmarks (
assets/bookmarks.json, updated OTA in release builds) or save custom coordinate + rotation + palette bookmarks persisted viaSharedPreferencesand Android Auto Backup. - Share any fractal location via scannable QR codes (
qr_flutter) or deep links (https://fractals.puzzak.page/v?d=...andfractals://v?d=..., plus Android Recents link sharing and Play Install Referrer support) with incoming shared-bookmark preview & save.
- Jump straight into 14 built-in mathematical landmarks (
-
MP4 Zoom Video & 8K Image Export:
-
MP4 Zoom Video Export: Render
720p,1080p, or4Kvideos (3–30s,12–120fps) via GPU Perturbation (10³⁰⁰×sharp) and AndroidMediaCodec+MediaMuxer, featuring a Google Photos-style filmstrip range trimmer, live preview scrubbing, and foreground-service background export (ExportForegroundService) saving to/Movies/Fractals. -
PNG / JPEG Image Export: Cinebench-style live tile-rendered snapshots in
Device Screen,1080p,2K (1440p),4K (2160p), and8K (4320p)with customizable aspect ratios (Match Screen,16:9,2:1,21:9,32:9,4:3,1:1,Custom Size), orientation, and rotation presets.
-
MP4 Zoom Video Export: Render
-
Potatoemeter Benchmark & Google Play Games Services:
- Deterministic GPU fence-synced Potatoemeter hardware benchmark (
lib/engine/potato_benchmark.dart) scoringGPU f32,GPU df64, andCPU f64throughput across 6 tiers (Raw SpudtoQuantum Yam). -
Google Play Games Services v2 (
lib/engine/play_games_service.dart) with 3 global leaderboards (Potatoemeter Global Ranking, Deepest Zoom Reached, Total Exploration Time), 14 achievements, and cross-device progress sync.
- Deterministic GPU fence-synced Potatoemeter hardware benchmark (
-
Adaptive
m3xMaterial 3 Expressive UI:- Powered by
m3x,m3x_ui,m3x_core,m3x_dict, andm3x_gh: features a 3-state viewport (Fullscreen via long-press, Framed Card HUD, and Adaptive Split Settings / docked side inspector on tablets, foldables, and desktops). - Compact zoom/position HUD with one-tap coordinate copying, magnetic axis/rotation snapping, and debug-only render telemetry (
FPS, frame time sparkline, active engine badge). - Bundled English (
en) and Ukrainian (uk) translations with OTA GitHub updates plus an in-app GitHub Repository Explorer.
- Powered by
- Touch: Drag for 1:1 panning, pinch to zoom anchored at the focal midpoint, two-finger twist to rotate, double-tap to zoom in, long-press to toggle fullscreen.
- Mouse: Drag to pan, scroll wheel to zoom smoothly toward the pointer location.
- Keyboard (customizable in settings):
+/-: Zoom in / outArrow keys/WASD: Pan cameraQ/E: Rotate canvas left / rightR: Reset camera to default fractal viewH: Show / hide HUDI: Toggle inspector panel
| Component | Path | Role |
|---|---|---|
| GLSL Shader | shaders/fractal.frag |
#version 460 core fragment shader (f32, Dekker-Knuth df64, 2x2 SSAA, rotation, 8 cyclic palettes, 6 fractals) |
| Perturbation Shader | shaders/perturbation.frag |
GPU Perturbation Theory + 48-bit orbit texture & 3-term Series Approximation shader (10³⁰⁰+× zoom) |
| Perturbation & BigFloat | lib/engine/perturbation_solver.dart, lib/engine/big_float.dart |
608+-bit BigFixed arithmetic and background-isolate reference orbit + Series Approximation solver |
| Interactive Viewport | lib/widgets/fractal_canvas.dart |
FractalCanvas GPU/PT/CPU painter, progressive LOD crossfades, gestures, wheel zoom, keyboard shortcuts |
| State & Camera Engine | lib/engine/fractal_engine.dart |
ChangeNotifier state machine, BigFixed focal-point camera math, persistence, Dictionary & AnalyticsService |
| Models & Landmarks | lib/engine/fractal_models.dart |
FractalType, FractalPalette, RenderQuality, RenderBackend, splitDoubleToDf64, FractalBookmark |
| Parallel CPU Renderer | lib/engine/cpu_renderer.dart |
Persistent interleaved worker-isolate float64 renderer for manual CPU f64 mode and PNG/JPEG export |
| Benchmark, Play Games & Share | lib/engine/potato_benchmark.dart, lib/engine/play_games_service.dart, lib/engine/fractal_share_link.dart |
Potatoemeter hardware benchmark, Play Games Services v2 leaderboards/achievements, and deep-link/QR codec |
Requires Flutter (SDK >=3.5.0 <4.0.0).
flutter pub get
flutter test
flutter run- Changelog: Full version history
- Roadmap: Planned features & milestones
- License: The Unlicense
- Discovered a great location? Submit your favorite fractal coordinates via a Pull Request to
assets/bookmarks.jsonwith your name in the"author"field. - Release builds automatically sync updated default bookmarks over-the-air (OTA) from GitHub.
- Found a bug, rendering edge case, or shader optimization? Open an issue or pull request on GitHub.
- Contributions adding new fractals, color palettes, or translations (
assets/translations/) are welcome!
- Built with Flutter and the
m3xMaterial 3 eXtended package ecosystem. - Google Antigravity for AI reviews and suggestions during development.
- And to the Armed Forces of Ukraine for keeping me safe. Stand with Ukraine!