gomb

command module
v0.0.0-...-f81f186 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 26, 2024 License: MIT Imports: 5 Imported by: 0

README

GOMB - Go Mandelbrot

Gomb is a simple tool that renders the Mandelbrot fractal set in ASCII

Building

go get .
go build .

Usage

Gomb will detect the dimensions of your terminal and use the entire space to render the image. The following switches are supported:

Argument Description
-correct_aspect apply aspect correction
-invert Invert palette
-iterations int Number of iterations (default 128)
-x float Position x
-y float Position y
-zoom float Zoom factor (default 1)

Examples

$ ./gomb  -zoom 0.5 -iterations 38 -invert 

                                   ''''''''''''''''''''                                  
                               ''''''''''''''''''''''''''''                              
                            ''''''''''''''''''''''''''''''''''                           
                         ''''''''''''''''''''''''''''''''''''^,,^                        
                       ''''''''''''''''''''''''''''''''''''^,,^^i^'                      
                     ''''''''''''''''''''''''''''''''''''^,,,^^;^''''                    
                    '''''''''''''''''''''''''''''''''''^;,,,^;^^''''''                   
                  ^^''''''''''''''''''''''''''''''''^,;,,<^,,^''''''''''                 
                 ^^^^^^''''''''''''''''''''''''''^^,;;,;,,l;^''''''''''''                
                l;,^^^^^^^''''''''''''''''''''^^,+;;;;l,,;l^^'''''''''''''               
               ^^^;i,,^^^^^^^^^''''''''''^^^^,_?l;;;l;,_;;^^'''''''''''''''              
              ^^^^^+;;,,,^^^^^^^^^^^^^^^,,,+i+ il<[i;+c<;^^'''''''''''''''''             
             '^^^^^^i;?;,,,,,,,,,,,,,,,;_)       j$ i<l ^^^''''''''''''''''''            
            ''^^^^^^^?i;jl,,,,,,,,,,;i            b_<h<^^^''''''''''''''''''''           
            ''^^^^^^^^i+;{<l;;,,,;;l<                _+^^^''''''''''''''''''''           
           '''^^^^^^^^^i|ii+<llllli_                  x,^^'''''''''''''''''''''          
           '''^^^^^^^^^i+  ? [_<<_                    i< ,^''''''''''''''''''''          
          '''^^^^^^^^^^;      xuj                          '''''''''''''''''''''         
          ''^^^^^^^^^^;i                               _,,^^''''''''''''''''''''         
          ',,,,^^^^,,;i                               _,^^^^^'''''''''''''''''''         
          ,,+,,,,,;;;                                 _ ^^^^^^''''''''''''''''''         
          ,,,il?llliX                               [[,,,^^^^^''''''''''''''''''         
                                                  ?<l;,,,^^^^^^'''''''''''''''''         
          ,,,il?llliX                               [[,,,^^^^^''''''''''''''''''         
          ,,+,,,,,;;;                                 _ ^^^^^^''''''''''''''''''         
          ',,,,^^^^,,;i                               _,^^^^^'''''''''''''''''''         
          ''^^^^^^^^^^;i                               _,,^^''''''''''''''''''''         
          '''^^^^^^^^^^;      xuj                          '''''''''''''''''''''         
           '''^^^^^^^^^i+  ? [_<<_                    i< ,^''''''''''''''''''''          
           '''^^^^^^^^^i|ii+<llllli_                  x,^^'''''''''''''''''''''          
            ''^^^^^^^^i+;{<l;;,,,;;l<                _+^^^''''''''''''''''''''           
            ''^^^^^^^?i;jl,,,,,,,,,,;i            b_<h<^^^''''''''''''''''''''           
             '^^^^^^i;?;,,,,,,,,,,,,,,,;_)       j$ i<l ^^^''''''''''''''''''            
              ^^^^^+;;,,,^^^^^^^^^^^^^^^,,,+i+ il<[i;+c<;^^'''''''''''''''''             
               ^^^;i,,^^^^^^^^^''''''''''^^^^,_?l;;;l;,_;;^^'''''''''''''''              
                l;,^^^^^^^''''''''''''''''''''^^,+;;;;l,,;l^^'''''''''''''               
                 ^^^^^^''''''''''''''''''''''''''^^,;;,;,,l;^''''''''''''                
                  ^^''''''''''''''''''''''''''''''''^,;,,<^,,^''''''''''                 
                    '''''''''''''''''''''''''''''''''''^;,,,^;^^''''''                   
                     ''''''''''''''''''''''''''''''''''''^,,,^^;^''''                    
                       ''''''''''''''''''''''''''''''''''''^,,^^i^'                      
                         ''''''''''''''''''''''''''''''''''''^,,^                        
                            ''''''''''''''''''''''''''''''''''                           
                               ''''''''''''''''''''''''''''                              
                                   ''''''''''''''''''''                         
$ ./gomb  -zoom 39 -x 12 -iterations 38 -invert
                                                                             aYzznnnvvk  
                                                                          kkvvvvvvvvvvvvn
                                                                          Yvvvzzzzvvvvvvv
                                                                          vvzzza    zYYYY
                                                           **             vvzza J[???????
                                                       WJYYYYYYYzz        vvzz Y[???_____
                                                      8YYYJJJYYYYYYYz*     vzz )???______
                                                      YYJJ   q{{{{(  YYz    vzz ??_____~~
                                       $CCCCCCJJ      YYJ C[[[[???????[[ Yz   vz*??~~~~~~
                                       CCQCO  mCCCJ    YJ {[[??????????????[*z  v~~~~~~~~
                            OOOQQ     mCQ m{{{{{{{) CJ  YJ [???____________????[~~~~~~~~~
                          Omma   OOQ   CQ {{[[[[[[[[[[{CW Y ___________________~~~~~~~~~~
                qqdqqqm   Om )){{{{))OQ CC{[[??????????[[[ ____________________~~~~~~~~~~
        kkkkd   q f((((/q  O ){{{[[[{{{{q ????????????????______________________~~~~~~~~~
 *#**8  ar//(/ k d())){))))  [[[[[[[[[[[[?????????????????______________________~~~~~~~~~
  f////* r))))))(/{{{{{{{{{{[[[[[[[[[[[[[??????????????????______________________~~~~~~~~
/f((((((())))))))){{{{{{{{{{[[[[[[[[[[[[[[?????????????????_______________________~~~~~~~
//((((((())))))))){{{{{{{{{{{[[[[[[[[[[[[[[?????????????????_______________________~~~~~~
//(((((((())))))))){{{{{{{{{{{[[[[[[[[[[[[[??????????????????______________________~~~~~~
//((((((())))))))){{{{{{{{{{{[[[[[[[[[[[[[[?????????????????_______________________~~~~~~
/f((((((())))))))){{{{{{{{{{[[[[[[[[[[[[[[?????????????????_______________________~~~~~~~
  f////* r))))))(/{{{{{{{{{{[[[[[[[[[[[[[??????????????????______________________~~~~~~~~
 *#**8  ar//(/ k d())){))))  [[[[[[[[[[[[?????????????????______________________~~~~~~~~~
        kkkkd   q f((((/q  O ){{{[[[{{{{q ????????????????______________________~~~~~~~~~
                qqdqqqm   Om )){{{{))OQ CC{[[??????????[[[ ____________________~~~~~~~~~~
                          Omma   OOQ   CQ {{[[[[[[[[[[{CW Y ___________________~~~~~~~~~~
                            OOOQQ     mCQ m{{{{{{{) CJ  YJ [???____________????[~~~~~~~~~
                                       CCQCO  mCCCJ    YJ {[[??????????????[*z  v~~~~~~~~
                                       $CCCCCCJJ      YYJ C[[[[???????[[ Yz   vz*??~~~~~~
                                                      YYJJ   q{{{{(  YYz    vzz ??_____~~
                                                      8YYYJJJYYYYYYYz*     vzz )???______
                                                       WJYYYYYYYzz        vvzz Y[???_____
                                                           **             vvzza J[???????
                                                                          vvzzza    zYYYY
                                                                          Yvvvzzzzvvvvvvv
                                                                          kkvvvvvvvvvvvvn
                                                                             aYzznnnvvk  

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL