GithubHelp home page GithubHelp logo

fractal-mpi's Introduction

fractal-mpi: parallelized renderer for the Julia set.

This program renders Julia sets of the function f(z) = z^2 + c, coloring interior points by their proximity to the set and exterior points by their divergence rate.

This program renders Julia sets of the function f(z) = z^2 + c, coloring interior points by their proximity to the set and exterior points by their divergence rate.

The program reads image and fractal parameters from an input file (see the examples directory), and any of these can be overriden with a command-line argument.

If this is your input file

<fractal>
Cx = -0.8
Cy =  0.156

Lx       = 1.1  	      # physical size
center_x = 0.55		      # center
center_y = 0.05

<image>
Nx       =  480
Ny	 =  300

# coloring for interior points
tolerance = 50.0              # what counts as inside?
exp       = 4.0               # exponent
base      = 0.1               # min color

# coloring for exterior points
nstripes = 3
s1 = 10.0
s2 =  5.0
s3 =  3.0
color_1	  = DarkChocolate
color_2	  = Red # Indigo
color_3	  = MidnightBlue

# output file
file      = demj.ppm

<par_end>

You can run the program as

./fractal_mpi.x -i input.frac

or, if you want to override certain options

./fractal_mpi.x -i input.frac fractal/Lx=2 image/tolerance=100

fractal-mpi's People

Contributors

mkmcc avatar

Stargazers

Lucas Phang avatar  avatar Scott King avatar Bruce Yue avatar

Watchers

 avatar James Cloos avatar

fractal-mpi's Issues

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.