@prachwal/mandelbrot-generator - v1.1.1
    Preparing search index...

    Variable colorPalettesConst

    colorPalettes: ColorPalettes = ...

    Collection of predefined color palettes optimized for Mandelbrot fractal visualization

    Each palette is carefully crafted to highlight different aspects of the fractal structure:

    • rainbow: Classic multi-color palette showing intricate details
    • fire: Warm palette emphasizing heat-like patterns
    • cool: Cool blues and greens for serene visualization
    • classic: Traditional black-to-white gradient
    • hot: Intense reds, oranges, and yellows
    • electric: High-contrast neon colors
    • ocean: Deep blues with white highlights
    • sunset: Warm oranges, pinks, and purples
    import { colorPalettes } from './colors.js';

    // Access specific palettes
    const rainbowColors = colorPalettes.rainbow;
    const fireColors = colorPalettes.fire;

    // Use in configuration
    const config = {
    // ...other settings
    colorPalette: 'fire' as const
    };

    // Iterate through all available palettes
    Object.keys(colorPalettes).forEach(paletteName => {
    console.log(`${paletteName}: ${colorPalettes[paletteName].length} colors`);
    });

    1.0.0