Skip to content

philipc2/mandelbrot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mandelbrot

Visualuzation of the Mandelbrot Set using Node-JS and Python

Valley

Overview

A cross-language project that uses Node-JS to generate data from the Mandelbrot Set and Python to visualize the result using Matplotlib. Both packages are self-contained within command line scripts.

Usage

Prerequisites

  • Node.js & npm
  • Python 3.8++, pip
  • (Optionally) Conda to manage your Python env

1. Build or install the CLIs

# JS CLI
cd js-mandelbrot
npm install    # installs dependencies

# Python CLI
cd path/to/python-package
pip install -e .   # registers `mandelbrot-vis`

2. Generate a JSON View

node js-mandelbrot/bin/mandelbrot.js \
  -x -0.7435669 -y 0.1314023 \
  -w 0.0022878  -h 0.0022878 \
  -s 1e-5 \
  -n 2000 \
> seahorse_tail.json

3. Render Image

mandelbrot-vis seahorse_tail.json seahorse_tail.png

4. Preconfigured Scrip

chmod +x generate_mandelbrot.sh
conda activate mandelbrot
./generate_mandelbrot.sh

About

Visualization of the Mandelbrot Set with Python and Node-JS

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published