@prachwal/mandelbrot-generator
Version:
Professional Mandelbrot fractal generator with TypeScript support, interactive web interface, and multiple output formats
54 lines (37 loc) • 1.63 kB
Markdown
[**@prachwal/mandelbrot-generator v1.1.1**](../README.md)
***
[@prachwal/mandelbrot-generator](../globals.md) / colorPalettes
> `const` **colorPalettes**: [`ColorPalettes`](../type-aliases/ColorPalettes.md)
Defined in: [colors.ts:170](https://github.com/prachwal/mandelbrot-generator/blob/da157e1b866785501d38ccb7552859d4482dd1a8/src/colors.ts#L170)
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
```typescript
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`);
});
```
- [PaletteType](../type-aliases/PaletteType.md) for available palette names
- [getColor](../functions/getColor.md) for using palettes in fractal generation
1.0.0