Skip to content

Gives you a simple tool for generating newton fractals through node.js

License

Notifications You must be signed in to change notification settings

GwenTinho/Newton-Fractals

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

89 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Newton-Fractals

Try it out by cloning the repo, then running the following commands from the terminal :

  • npm i
  • npm start

Usage:

let fractals = new Fractals();

for (let i = 3; i < 4; i++) {
    let fractal = new Fractal(1600, i + 3, 0, i % 3);
    fractal.setFileName("fractal" + i + ".jpeg");
    fractal.setA(0.9, 0.3 * i);
    fractal.setIterations(600);
    fractals.add(fractal);

}

fractals.setFilePath("your file path");
fractals.draw();

This project is licensed under the terms of the MIT license