This package has been deprecated

Author message:

moved

mandelbrot-wasm
TypeScript icon, indicating that this package has built-in type declarations

0.1.2 • Public • Published

What's working

  • Initial Render of the Set on Re = [-2; 2]
  • Coloring based on iterations
  • Rendering to a given HTML5 Canvas Element

How to use

npm install @juliankaindl/mandelbrot-wasm

Assuming all calls are async

import * as wasm from "@juliankaindl/mandelbrot-wasm";

const canvas = document.getElementById('canvas');
const ctx = canvas.getContext('2d');

wasm.draw(ctx, canvas.scrollWidth, canvas.scrollHeight, 0.0, 0.0);

WIP

  • Zooming
  • Rendering around a specific point on the plane (the last 2 params dont have a meaning atm)
  • Render with WebGL instead of HTML5 Canvas
  • Add more input Options for
    • color palettes (predefined)
    • max iterations
  • Update the dimensions

/mandelbrot-wasm/

    Package Sidebar

    Install

    npm i mandelbrot-wasm

    Weekly Downloads

    0

    Version

    0.1.2

    License

    Apache-2.0

    Unpacked Size

    37.4 kB

    Total Files

    6

    Last publish

    Collaborators

    • npm
    • juliankaindl