Constimport { 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`);
});
Collection of predefined color palettes optimized for Mandelbrot fractal visualization
Each palette is carefully crafted to highlight different aspects of the fractal structure: