Giter VIP home page Giter VIP logo

rustelbrot's Introduction

Website: http://faras.me/fractal

Demos

Install

Run

'cargo run [FLAGS] [OPTIONS] [SUBCOMMAND]'

FLAGS can be one of g3d (generates 3d meshes or 2d layers), vid (generates a sequence of 2d frames) or g2d (generates a sequence of 2d frames, default)

USAGE:
    rustelbrot [FLAGS] [OPTIONS] [SUBCOMMAND]

FLAGS:
    -h, --help               Prints help information
    -o, --output-template    Formato del nombre de salida, incluyendo carpeta y número de cuadro
    -V, --version            Prints version information

OPTIONS:
    -e, --boxend <boxend>            Define las coordenadas de la caja del cuadro final [x1,y1,x2,y2]
    -s, --boxstart <boxstart>        Define las coordenadas de la caja del cuadro inicial [x1,y1,x2,y2]
    -d, --dimentions <dimentions>    Tamaño de las imágenes a generar WIDTHxHEIGHT en pixeles
    -f, --frames <frames>            Define la cantidad de cuadros a generar
    -p, --pixelsize <pixelsize>      Tamaño del pixel, aumentar este valor disminuye el detalle y aumenta la performance

SUBCOMMANDS:
    g2d     genera en 2d frames para video
    g3d     genera en 3d (actualmente no anda bien)
    help    Prints this message or the help of the given subcommand(s)
    vid     genera en 2d

Example commands

  • 3d layers, nice spot: 'cargo run g3d -l -s 0.33x0.40x0.05x0.15'
  • Same, but 30 layers and 25cm 720dpi: 'cargo run g3d -l -d 7087x7087 -f 30 -s 0.33x0.40x0.05x0.15'

Prototype 2

  • 25 layers in 20x20cm 720dpi 'cargo run g3d -l -d 5670x5670 -f 25'
  • Printed on acrylic crystal 200x200x2mm
  • Backlight with LED strip

Notes

  • Default 2d mode and vid will generate 100 PNG images in current directory, parameters can be adjusted in the code.

TODO:

  • GUI
  • STL export for 3d mode

License

GPLv3

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.