Skip to content

philkuz/fractals

Repository files navigation

Fractals

Playing around with cool fractals

Buddhabrot

buddhabrot

####Quick Usage:

b = Buddhabrot()
b.render()
b.draw(<file_name>)

Note: Because of the non-uniform densities of buddhabrot traces, I had to do some use a clever coloring to get this drawing to show up nicely. If you use the default color function (the same one that colored the mandelbrot and julia images below), you'll end up with something like this: bad buddha

The function I used:

def buddha_color(i):
  r= int(255 * math.atan(float(i)/ 10))
  return (r, r, r)

Mandelbrot

mandelbrot ####Quick Usage:

m = Mandelbrot()
m.render()
m.draw(<file_name>)

Julia

julia ####Quick Usage:

j = Julia()
j.render()
j.draw(<file_name>)

About

Just playing around with some fractals

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages