项目作者: GwenTinho

项目描述 :
Gives you a simple tool for generating newton fractals through node.js
高级语言: JavaScript
项目地址: git://github.com/GwenTinho/Newton-Fractals.git
创建时间: 2019-01-20T20:57:57Z
项目社区:https://github.com/GwenTinho/Newton-Fractals

开源协议:MIT License

下载


Newton-Fractals

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

  • npm i
  • npm start

Usage:

  1. let fractals = new Fractals();
  2. for (let i = 3; i < 4; i++) {
  3. let fractal = new Fractal(1600, i + 3, 0, i % 3);
  4. fractal.setFileName("fractal" + i + ".jpeg");
  5. fractal.setA(0.9, 0.3 * i);
  6. fractal.setIterations(600);
  7. fractals.add(fractal);
  8. }
  9. fractals.setFilePath("your file path");
  10. fractals.draw();

This project is licensed under the terms of the MIT license