Skip to content

Mandelbrot viewer written in Typescript with HTML5 Canvas. One of my first forays into TypeScript. It's on the web so give it a try!

License

Notifications You must be signed in to change notification settings

snoopdave/mbcanvas

Repository files navigation

mbcanvas

This is a simple Mandelbrot Set viewer written in Typescript and using the HTML5 Canvas. The viewer allows you to view the set and to zoom in, zoom out and rotate the color-table. Points that are determined to be in the set are shown in black and other points are colored based on the number of times they were squared before "escaping" the set.

You can play with the viewer here: http://rollerweblogger.org/mbcanvas/ and if you want to hack around with the source code the follow the instructions below.

Screenshot

How to build mbcanvas locally

The instructions explain how to get setup to build and run mbcanvas locally.

Pre-requisites

To build and run mbcanvas, you will need a computer with Node and npm installed, also you'll need a web-browser.

Getting the code

Clone this Github repo.

git clone https://github.com/snoopdave/mbcanvas.git

Build and run

Open up a terminal window and cd into the mbcanvas directory.

First, install dependencies:

npm install

To start the development server:

npm start

This will compile the TypeScript code and start a development server. The application will automatically reload when you make changes to the source code.

To create a production build:

npm run build

About

Mandelbrot viewer written in Typescript with HTML5 Canvas. One of my first forays into TypeScript. It's on the web so give it a try!

Resources

License

Stars

Watchers

Forks

Packages

No packages published