InstaCalc Procedural Graphics • Ship Math, Generate SVG/PNG

PNG → SVG → Fourier & Analytic SDF Compression

Every demo below proves the core thesis: store equations, Fourier harmonics, or implicit SDF regions as tiny .ic source (127–507 B deflated), and synthesize crisp vector/raster graphics at runtime.

1. Live Fourier Epicycle Calcy Tracer

Real complex 2D FFT coefficients extracted from calcy.png (218,607 B). Drag Harmonics K to watch the silhouette lock in.

K=32 harmonics • ~507 B deflated (431× smaller than PNG)

2. Analytic SDF Character Assembly (174 B)

Assemble Calcy from implicit regions: superellipse chassis |x/a|n + |y/b|n ≤ 1, smoothMin joints, and circular gloves/eyes.

Source: 325 B .ic • Deflate: 174 B (1,256× smaller than PNG) • ∞ resolution

3. Mandelbrot Fractal (154 B Equation)

Click anywhere on the fractal to zoom in 2×. Infinite detail generated from a single recurrence zn+1 = zn² + c.

Zoom: 1.0×
Source: 255 B .ic • Deflate: 154 B • Same bytes at 256px or 4K

4. Measured Compression Ladder (calcy.png = 218,607 B Baseline)

RepresentationRaw SizeDeflate-Rawvs. PNGResolution Independent?
Original Raster calcy.png218,607 B—1×No
Douglas-Peucker SVG (eps=2px, 94 pts)788 B425 B514×Yes (Vector)
Douglas-Peucker SVG (eps=8px, 36 pts)347 B228 B959×Yes (Vector)
Fourier Epicycles (K=16 .ic)871 B297 B736×Yes (Parametric Curve)
Fourier Epicycles (K=32 .ic)1,665 B507 B431×Yes (Billboard QR OK)
Analytic Superellipse SDF (.ic)325 B174 B1,256×Yes (∞ SDF)
Mandelbrot / Procedural FBM Noise (.ic)165–255 B127–154 B∞Yes (∞ Procedural)