sigrist-svelte-mandelbrot-explorer
Version:
A svelte component that renders the mandelbrot set using WebGL. Try this [Demo](https://sigrist.dev/apps/mandelbrot).
15 lines (14 loc) • 425 B
TypeScript
import type { vec2 } from '../types/vectors';
interface MandelbrotActionArguments {
center: vec2;
magnificationMultiplier: number;
width: number;
height: number;
numberOfIterations: number;
}
/**
* Renders the Mandelbrot set to the canvas Element
*
*/
declare function mandelbrotAction(node: HTMLCanvasElement, args: MandelbrotActionArguments): SvelteActionReturnType;
export default mandelbrotAction;