Notes:
Fractals is a library for creating fractal images in your Ruby programs. It
currently renders the Burning Ship, Julia Set, Mandelbrot, and Newton fractals
using the Escape Time or Normalized Iteration Count algorithm. The Themes
module contains a few predefined coloring palettes, but the Fractal type will
also accept any user-defined algorithm or theme.
Installation:
sudo gem install fractals
Installing from source:
svn checkout http://svn.ryanbaxter.net/fractals/tags/release-1.2.1 fractals-1.2.1
cd fractals-1.2.1
rake install
*Be sure to install the proper dependencies before using the RMagick or JRuby renderers.
Using Fractals:
require 'rubygems'
require 'fractals'
mandelbrot = Fractals::Mandelbrot.new
mandelbrot.write
Examples can be found in the examples.rb file.
License:
Copyright (c) 2009 Ryan Baxter
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
Changes:
1. The PNG library has been added as a dependency and will install by default.
2. Changed some errors and added text to the README file.
|