Skip to content
ruby c extension for rendering the mandelbrot set
C Ruby
Find file
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
ext/mandelbrot
lib
.gitignore
LICENSE
README.md
mandelbrot.gemspec

README.md

mandelbrot

A Ruby C extension for rendering the Mandelbrot set.

Installation

gem install mandelbrot

It's super easy to use...

require './mandelbrot'
m = Mandelbrot.new Complex(-2, -1), Complex(1, 1)
grid = m.render 1680, 1050

You can also set the max number of iterations:

m.max_iters = 1024

And render a Bitmap Image:

m.bmp 1680, 1050

Example

generation is super quick

the output is very pretty

Something went wrong with that request. Please try again.