Free Online Utility • Interactive Fractal Studio • 2× HiDPI + SVG Engine

ANSI Fractal

Generate 256-Color and TrueColor ANSI escape-sequence terminal fractals (\x1b[38;5;Nm) with a live color-rendered terminal canvas preview and ready-to-run Bash printf / raw ANSI output.

Mathematical Specification Fractal Studio
Xterm-256 ANSI Escape Sequence:
Foreground Color: \x1b[38;5;{code}m█   |   Reset: \x1b[0m
6×6×6 RGB Cube Code: 16 + 36·R + 6·G + B   (R,G,B ∈ {0..5})
Color StandardECMA-48 / Xterm 256-Color
Shell CompatibilityBash, Zsh, iTerm2, Windows Terminal
Live PreviewExact Xterm RGB Simulation
SEQUENCE / STRING + LIVE CURVE PREVIEW
ANSI Fractal

        
Synchronized Math + Visual Fractal Engine Instant

Session Calculation Log

No entries recorded in this session yet.

Mathematical Foundations of ANSI Fractal

ANSI Fractals pair Unicode full-block glyphs (█) with ECMA-48 / Xterm-256 terminal escape sequences (`\x1b[38;5;Nm`) so modern command-line shells (Bash, Zsh, iTerm2, Kitty, Alacritty, and Windows Terminal) render vibrant, multi-colored Mandelbrot, Julia, and Sierpinski graphics right inside the terminal window.

Self-similar fractals exhibit recurring geometric structure across scales, governed by Iterated Function Systems (IFS), Lindenmayer L-System rewriting rules, or recursive spatial subdivisions. Every geometry calculation, 2× HiDPI canvas pass, progressive animation frame, and lossless SVG vector export executes natively inside your browser at 60 FPS with zero server latency.

Xterm-256 Escape Sequence Architecture

Set Foreground Color N (0..255):  \x1b[38;5;{N}m
6×6×6 Color Cube Index Formula:   N = 16 + 36·R + 6·G + B   (R, G, B ∈ 0..5)
Reset Attributes at End of Row:   \x1b[0m
One-Liner Execution in Bash/Zsh:  printf "\x1b[38;5;42m█...\x1b[0m\n"

The live preview canvas above simulates the exact Xterm-256 RGB color codes emitted in the escape string below, allowing you to preview and tune terminal themes before pasting the `printf` command into your shell.

Iteration Scaling & Complexity Table

Iteration / SettingElements / SizeGeometric Property
Emerald CyberXterm codes 36..85Matrix emerald & cyan terminal glow
Plasma NeonXterm codes 129..220Violet, magenta & gold gradient
Oceanic CyanXterm codes 32..123Deep sea blue to ice cyan
Solar MagmaXterm codes 160..228Crimson, amber & solar yellow

Applications in Science, Graphics & Engineering

Shell Login & Dotfiles Art

Paste the Ready-to-Paste `printf "..."` one-liner directly into `.bashrc` or `.zshrc` for an instant color fractal greeting.

CLI Progress & Diagnostic Demos

Test 256-color terminal emulator fidelity across SSH sessions and tmux panes.

BBS & Demoscene ANSI Art

Honors the classic 1980s/1990s ANSI art demoscene using mathematical fractal generation.

Zero External Dependencies

Runs in any POSIX shell using the built-in `printf` utility with zero packages installed.

Interactive Controls, Pan/Zoom & Vector Export

Choose your fractal and 256-color palette, preview the exact terminal colors on the live canvas, and copy the ready-to-run `printf` command straight into your terminal.

Export crisp 2× Retina PNG renders for presentations or scalable infinite-resolution SVG files directly into Illustrator, Figma, Inkscape, LaTeX, or laser-cutting workflows.

Frequently Asked Questions

How do I display the ANSI fractal in my terminal?
Select Ready-to-Paste Bash Command (`printf "..."`), click Copy, and paste it directly into Bash, Zsh, or Windows Terminal (WSL / Git Bash).
What does `\x1b[38;5;42m` mean?
`\x1b[` is the ANSI Control Sequence Introducer (CSI), `38;5;` selects 256-color foreground mode, and `42m` sets the color to Xterm palette index 42 (bright emerald).
Why is `\x1b[0m` added at the end of every line?
It resets terminal colors back to default so your terminal prompt and background do not stay colored after the fractal finishes printing.
Can I download the raw ANSI sequences as a file?
Yes. Switch to Escaped ANSI Source or Bash `printf` mode and click the Download button.