UNPKG

@prachwal/mandelbrot-generator

Version:

Professional Mandelbrot fractal generator with TypeScript support, interactive web interface, and multiple output formats

27 lines 1.09 kB
/** * @fileoverview Mandelbrot fractal implementation as plugin * @module MandelbrotFractal */ import { BaseFractal } from '../core/base-fractal.js'; import type { FractalConfig, FractalResult, Complex, ParameterSchema } from '../core/types.js'; /** * Classic Mandelbrot fractal implementation * Formula: z_{n+1} = z_n^2 + c, where z_0 = 0 */ export declare class MandelbrotFractal extends BaseFractal { readonly id = "mandelbrot"; readonly name = "Mandelbrot Set"; readonly description = "Classic Mandelbrot fractal using the iteration z\u00B2 + c"; readonly defaultConfig: FractalConfig; readonly parameterSchema: ParameterSchema[]; /** * Core Mandelbrot iteration * @param point - Point c in complex plane * @param config - Configuration parameters * @returns Iteration result */ iterate(point: Complex, config: FractalConfig): FractalResult; protected getColor(result: FractalResult, config: FractalConfig): [number, number, number]; validateConfig(config: FractalConfig): boolean; } //# sourceMappingURL=mandelbrot.d.ts.map