Skip to content

ChayoteJarocho/FractalGenerator

Repository files navigation

FractalGenerator

Tool to generate fractal images.

Usage:
[-ASYNC][-CIMAG][-CREAL][-FRACTAL][-H | HELP][-HEIGHT][-ITERATIONS][-LIGHT][-MIX][-OUTPUT][-PALETTE][-RADIUS][-WIDTH][-XCENTER][-YCENTER][-ZOOM]

-H | HELP         : Show this help message.

-ASYNC <boolean>  : Async. Set to 'true' to calculate multithreaded, 'false' for single thread. Default is 'true'.
-CIMAG <double>   : For Julia, you can set the imaginary value of C. Default: 0.75
-CREAL <double>   : For Julia, you can set the real value of C. Default: -0.2
-FRACTAL <string> : Fractal variation. Acceptable values: Mandelbrot, Julia, Newton, Spiderweb. Default: Mandelbrot
-HEIGHT <int>     : Height of the image, in pixels. Must be a positive integer number. Default: 200
-ITERATIONS <int> : Iterations inside the algorithm. Must be a positive integer number. The bigger the number, the higher the contrast. Default: 256
-LIGHT <double>   : Light management (contrast). Must be a double number between 0.0 and 1.0. Default: 0
-OUTPUT <string>  : Output file. Must not have spaces, unless it is between quotation marks. Extension must be bmp. Default: output.bmp
-PALETTE <string> : Mathlab base color palette file. Must ve a valid Mathlab palette, and must exist inside the palettes directory. Default:  hsv.txt
-MIX <string>     : Optional extra Mathlab color palette that will be mixed with the base palette file. Must ve a valid Mathlab palette, and must exist inside the palettes directory. Default is empty.
-RADIUS <double>  : Escaping radius limit. Must be a positive double number. If fractal is Newton, must be a float number < 1.0. Default: 1E+20
-WIDTH <int>      : Width of the image, in pixels, must be a positive integer number. Default: 320
-XCENTER <double> : The x coordinate of the point to zoom in the plane. Default: 0.
-YCENTER <double> : The y coordinate of the point to zoom in the plane. Default: 0.
-ZOOM <double>    : The amount of zoom on the image. The default is 1.

Examples:

Mandelbrot

FractalGenerator -fractal Mandelbrot -width 640 -height 480 -iterations 1500 -radius 100000

Mandelbrot

Julia

FractalGenerator -fractal Julia -width 640 -height 480 -iterations 100 -radius 10000 -palette copper.txt

Julia

Newton

FractalGenerator -fractal Newton -width 640 -height 480 -iterations 2000

Newton

About

Tool to generate fractal images.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages