Running Fract’ol
Fract’ol supports two fractal types: Mandelbrot and Julia. Each has different command-line requirements.Basic Usage
The fractal name is case-sensitive. Use
Mandelbrot or Julia exactly as shown.Launch Examples
Launch Mandelbrot Fractal
The Mandelbrot set is the simplest to launch, requiring only the fractal name:This opens a 2000x1500 pixel window displaying the iconic Mandelbrot set with psychedelic color gradients.
What You'll See
The classic Mandelbrot set centered at origin with:
- Resolution: 2000x1500 pixels
- Initial zoom: 1.0x
- Default iterations: 30
- Color scheme: Lime to mint gradient
Launch Julia Fractal
Julia sets require two parameters: the real and imaginary parts of the complex constant
c:The two parameters represent the complex number
c = real + imaginary*i used in the Julia set equation: z = z² + cInteractive Controls
Once the fractal window opens, you can explore and manipulate the visualization in real-time.Zoom Controls
Zoom In
Mouse Wheel Up or Scroll UpZooms in by 5% (multiplies zoom by 0.95)
Zoom Out
Mouse Wheel Down or Scroll DownZooms out by 5% (multiplies zoom by 1.05)
Pan/Navigate
Move around the fractal using keyboard controls:- Arrow Keys
- WASD Keys
| Key | Action |
|---|---|
| ↑ Up | Pan up |
| ↓ Down | Pan down |
| ← Left | Pan left |
| → Right | Pan right |
0.5 * zoom units, so panning speed adapts to your current zoom level.
Iteration Control
Adjust the detail level by changing iteration count:Increase Detail
+ (Plus Key)Increases iterations by 5 (more detail, slower render)
Decrease Detail
- (Minus Key)Decreases iterations by 5 (less detail, faster render)
Default iteration count is 30. Higher values reveal more detail at deep zoom levels but increase rendering time.
Exit Program
Close the fractal viewer:- ESC Key: Exit the program
- Window Close Button (X): Exit the program
Exploration Workflow
Zoom In
Scroll up to zoom into the region. The fractal will re-render automatically after each zoom.
Understanding the Rendering
Window Dimensions
The fractal renders at a fixed resolution defined in the header file:Color Scheme
Pixels are colored based on iteration escape time:- White: Points inside the set (reached max iterations)
- Gradient (Lime to Mint): Points outside the set, colored by escape speed
The color interpolates between:
PSYCHEDELIC_LIME(#00FF00)PSYCHEDELIC_MINT(#98FF98)
Fractal Mathematics
Both fractals iterate the equationz = z² + c:
- Mandelbrot:
cis the pixel coordinate,zstarts at 0 - Julia:
cis the command-line parameter,zstarts at the pixel coordinate
Tips for Best Results
Performance
- Lower iterations for faster exploration
- Increase iterations only when zooming deep
- Smaller zoom values render faster
Aesthetics
- Try Julia parameters between -1 and 1
- Zoom into boundary regions for detail
- Experiment with iteration counts (30-100)
Exploration
- Start wide, then zoom progressively
- Pan slowly to find interesting regions
- Save interesting Julia parameters
Technical
- Default escape value: 4
- Coordinate mapping: -2 to +2 (real), +2 to -2 (imaginary)
- Window must support X11 events
Command Reference
Keyboard Controls Summary
| Key | Action |
|---|---|
| ESC | Exit program |
| ↑ / W | Pan up |
| ↓ / S | Pan down |
| ← / A | Pan left |
| → / D | Pan right |
| + | Increase iterations (+5) |
| - | Decrease iterations (-5) |
Mouse Controls Summary
| Action | Effect |
|---|---|
| Scroll Up | Zoom in (×0.95) |
| Scroll Down | Zoom out (×1.05) |
Next Steps
Now that you know how to use Fract’ol, explore more advanced topics:- Learn about the fractal mathematics behind the visualizations
- Understand the rendering algorithm and optimization techniques
- Explore customization options for colors and parameters