Skip to content

bartolomej/julia-set

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Complex set art

Generate artistic images of Julia Set. More about Julia Set. I made this program while I was learning Go language for the first time.

I've also made another web based visualization of Julia set here.

C = 0 + 0i C = 0 + 0i C = -0.43 - 0.2i C = -0.43 - 0.2i
C = 0.61 + 0.52i C = 0.61 + 0.52i C = -0.81 + 0.0i C = -0.81 + 0.0i

Installation

Clone project in your project directory.

git clone github.com/bartolomej/julia-set && cd julia-set

Usage

Requires a configured Go environment.

Default config

Run default scene configuration stored in example.config.json.

go run main.go

Basic usage syntax:

go run *.go <image-size> <Re(C)> <Im(C)> <output-file>

Custom config

Create config.json scene configuration file in root directory. Check out examples in example.config.json file.

Run custom scene configuration with the following syntax:

go run *.go <scene-id>