fractals 1.2.0 → 1.2.1

Sign up to get free protection for your applications and to get access to all the features.
data/README CHANGED
@@ -22,7 +22,8 @@ Changes:
22
22
  5. Users can now choose which dependancy nightmare they'd
23
23
  prefer. PNG, RMagick and JRuby each have their own renderer.
24
24
  PNGRenderer is the default, but is easy to override with the
25
- renderer= method.
25
+ renderer= method. Be sure to install the proper dependencies
26
+ before using the RMagick or JRuby renderers.
26
27
  6. bailout and max_iterations are no longer constructor
27
28
  parameters. This is the biggest breaking change.
28
29
  7. Unit tests have been added for each fractal.
@@ -32,13 +33,16 @@ Changes:
32
33
  See the documentation for a complete API reference.
33
34
 
34
35
  Installation:
35
- sudo gem install fractals-1.2.0.gem
36
+ sudo gem install fractals
36
37
 
37
38
  Installing from source:
38
- svn checkout http://svn.ryanbaxter.net/fractals/tags/1.2.0 fractals-1.2.0
39
- cd fractals-1.2.0
39
+ svn checkout http://svn.ryanbaxter.net/fractals/tags/release-1.2.1 fractals-1.2.1
40
+ cd fractals-1.2.1
40
41
  rake install
41
42
 
43
+ *Be sure to install the proper dependencies before using the RMagick or JRuby
44
+ renderers.
45
+
42
46
  Using Fractals:
43
47
  require 'rubygems'
44
48
  require 'fractals'
@@ -46,7 +50,8 @@ Using Fractals:
46
50
  mandelbrot = Fractals::Mandelbrot.new
47
51
  mandelbrot.write
48
52
 
49
- Examples can be found in the examples.rb file.
53
+ Examples can be found in the examples.rb file. Uncomment the fractal you'd like
54
+ to create before running.
50
55
 
51
56
  License:
52
57
  Copyright (c) 2009 Ryan Baxter
data/Rakefile CHANGED
@@ -5,7 +5,7 @@ require 'rake/rdoctask'
5
5
  require 'rake/testtask'
6
6
 
7
7
  NAME = 'fractals'
8
- VERS = '1.2.0'
8
+ VERS = '1.2.1'
9
9
  RDOC_FILES = ['examples.rb', 'gpl-2.0.txt', 'README']
10
10
 
11
11
  CLEAN.include ['doc/**/*', 'pkg/**/*']
@@ -55,7 +55,9 @@ spec = Gem::Specification.new do |s|
55
55
  s.test_files = FileList['test/**/*'].to_a
56
56
  s.require_paths = ['lib']
57
57
  s.has_rdoc = true
58
- s.extra_rdoc_files = RDOC_FILES
58
+ s.extra_rdoc_files = RDOC_FILES
59
+ s.add_dependency('RubyInline', '>= 3.8.3')
60
+ s.add_dependency('png', '>= 1.2.0')
59
61
  end
60
62
 
61
63
  desc 'Creates the gem.'
@@ -2,7 +2,7 @@
2
2
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
3
3
  <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
4
4
  <head>
5
- <title>Module: Fractals::Algorithms [Ruby Fractal Library - 1.2.0]</title>
5
+ <title>Module: Fractals::Algorithms [Ruby Fractal Library - 1.2.1]</title>
6
6
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
7
7
  <meta http-equiv="Content-Script-Type" content="text/javascript" />
8
8
  <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
@@ -2,7 +2,7 @@
2
2
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
3
3
  <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
4
4
  <head>
5
- <title>Class: Fractals::BurningShip [Ruby Fractal Library - 1.2.0]</title>
5
+ <title>Class: Fractals::BurningShip [Ruby Fractal Library - 1.2.1]</title>
6
6
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
7
7
  <meta http-equiv="Content-Script-Type" content="text/javascript" />
8
8
  <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
@@ -2,7 +2,7 @@
2
2
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
3
3
  <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
4
4
  <head>
5
- <title>Class: Fractals::Fractal [Ruby Fractal Library - 1.2.0]</title>
5
+ <title>Class: Fractals::Fractal [Ruby Fractal Library - 1.2.1]</title>
6
6
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
7
7
  <meta http-equiv="Content-Script-Type" content="text/javascript" />
8
8
  <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
@@ -2,7 +2,7 @@
2
2
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
3
3
  <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
4
4
  <head>
5
- <title>Class: Fractals::Julia [Ruby Fractal Library - 1.2.0]</title>
5
+ <title>Class: Fractals::Julia [Ruby Fractal Library - 1.2.1]</title>
6
6
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
7
7
  <meta http-equiv="Content-Script-Type" content="text/javascript" />
8
8
  <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
@@ -2,7 +2,7 @@
2
2
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
3
3
  <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
4
4
  <head>
5
- <title>Class: Fractals::Mandelbrot [Ruby Fractal Library - 1.2.0]</title>
5
+ <title>Class: Fractals::Mandelbrot [Ruby Fractal Library - 1.2.1]</title>
6
6
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
7
7
  <meta http-equiv="Content-Script-Type" content="text/javascript" />
8
8
  <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
@@ -2,7 +2,7 @@
2
2
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
3
3
  <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
4
4
  <head>
5
- <title>Class: Fractals::Newton [Ruby Fractal Library - 1.2.0]</title>
5
+ <title>Class: Fractals::Newton [Ruby Fractal Library - 1.2.1]</title>
6
6
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
7
7
  <meta http-equiv="Content-Script-Type" content="text/javascript" />
8
8
  <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
@@ -2,7 +2,7 @@
2
2
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
3
3
  <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
4
4
  <head>
5
- <title>Class: Fractals::Renderers::Base [Ruby Fractal Library - 1.2.0]</title>
5
+ <title>Class: Fractals::Renderers::Base [Ruby Fractal Library - 1.2.1]</title>
6
6
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
7
7
  <meta http-equiv="Content-Script-Type" content="text/javascript" />
8
8
  <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
@@ -2,7 +2,7 @@
2
2
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
3
3
  <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
4
4
  <head>
5
- <title>Module: Fractals::Renderers::JRubyRenderer [Ruby Fractal Library - 1.2.0]</title>
5
+ <title>Module: Fractals::Renderers::JRubyRenderer [Ruby Fractal Library - 1.2.1]</title>
6
6
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
7
7
  <meta http-equiv="Content-Script-Type" content="text/javascript" />
8
8
  <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
@@ -2,7 +2,7 @@
2
2
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
3
3
  <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
4
4
  <head>
5
- <title>Module: Fractals::Renderers::PNGRenderer [Ruby Fractal Library - 1.2.0]</title>
5
+ <title>Module: Fractals::Renderers::PNGRenderer [Ruby Fractal Library - 1.2.1]</title>
6
6
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
7
7
  <meta http-equiv="Content-Script-Type" content="text/javascript" />
8
8
  <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
@@ -2,7 +2,7 @@
2
2
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
3
3
  <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
4
4
  <head>
5
- <title>Module: Fractals::Renderers::RMagickRenderer [Ruby Fractal Library - 1.2.0]</title>
5
+ <title>Module: Fractals::Renderers::RMagickRenderer [Ruby Fractal Library - 1.2.1]</title>
6
6
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
7
7
  <meta http-equiv="Content-Script-Type" content="text/javascript" />
8
8
  <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
@@ -2,7 +2,7 @@
2
2
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
3
3
  <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
4
4
  <head>
5
- <title>Module: Fractals::Renderers [Ruby Fractal Library - 1.2.0]</title>
5
+ <title>Module: Fractals::Renderers [Ruby Fractal Library - 1.2.1]</title>
6
6
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
7
7
  <meta http-equiv="Content-Script-Type" content="text/javascript" />
8
8
  <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
@@ -2,7 +2,7 @@
2
2
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
3
3
  <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
4
4
  <head>
5
- <title>Module: Fractals::Themes [Ruby Fractal Library - 1.2.0]</title>
5
+ <title>Module: Fractals::Themes [Ruby Fractal Library - 1.2.1]</title>
6
6
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
7
7
  <meta http-equiv="Content-Script-Type" content="text/javascript" />
8
8
  <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
@@ -2,7 +2,7 @@
2
2
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
3
3
  <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
4
4
  <head>
5
- <title>Module: Fractals [Ruby Fractal Library - 1.2.0]</title>
5
+ <title>Module: Fractals [Ruby Fractal Library - 1.2.1]</title>
6
6
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
7
7
  <meta http-equiv="Content-Script-Type" content="text/javascript" />
8
8
  <link rel="stylesheet" href=".././rdoc-style.css" type="text/css" media="screen" />
data/doc/created.rid CHANGED
@@ -1 +1 @@
1
- Wed, 26 Aug 2009 20:52:16 -0400
1
+ Fri, 28 Aug 2009 22:43:50 -0400
@@ -2,7 +2,7 @@
2
2
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
3
3
  <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
4
4
  <head>
5
- <title>File: README [Ruby Fractal Library - 1.2.0]</title>
5
+ <title>File: README [Ruby Fractal Library - 1.2.1]</title>
6
6
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
7
7
  <meta http-equiv="Content-Script-Type" content="text/javascript" />
8
8
  <link rel="stylesheet" href=".././rdoc-style.css" type="text/css" media="screen" />
@@ -53,7 +53,7 @@
53
53
  </tr>
54
54
  <tr class="top-aligned-row">
55
55
  <td><strong>Last Update:</strong></td>
56
- <td>2009-08-26 20:51:04 -0400</td>
56
+ <td>2009-08-28 22:43:24 -0400</td>
57
57
  </tr>
58
58
  </table>
59
59
  </div>
@@ -93,7 +93,8 @@ Changes:
93
93
  5. Users can now choose which dependancy nightmare they'd
94
94
  prefer. PNG, RMagick and JRuby each have their own renderer.
95
95
  PNGRenderer is the default, but is easy to override with the
96
- renderer= method.
96
+ renderer= method. Be sure to install the proper dependencies
97
+ before using the RMagick or JRuby renderers.
97
98
  6. bailout and max_iterations are no longer constructor
98
99
  parameters. This is the biggest breaking change.
99
100
  7. Unit tests have been added for each fractal.
@@ -106,17 +107,21 @@ Changes:
106
107
  Installation:
107
108
  </p>
108
109
  <pre>
109
- sudo gem install fractals-1.2.0.gem
110
+ sudo gem install fractals
110
111
  </pre>
111
112
  <p>
112
113
  Installing from source:
113
114
  </p>
114
115
  <pre>
115
- svn checkout http://svn.ryanbaxter.net/fractals/tags/1.2.0 fractals-1.2.0
116
- cd fractals-1.2.0
116
+ svn checkout http://svn.ryanbaxter.net/fractals/tags/release-1.2.1 fractals-1.2.1
117
+ cd fractals-1.2.1
117
118
  rake install
118
119
  </pre>
119
120
  <p>
121
+ *Be sure to install the proper dependencies before using the RMagick or
122
+ JRuby renderers.
123
+ </p>
124
+ <p>
120
125
  Using Fractals:
121
126
  </p>
122
127
  <pre>
@@ -128,7 +133,7 @@ Using Fractals:
128
133
  </pre>
129
134
  <p>
130
135
  Examples can be found in the <a href="examples_rb.html">examples.rb</a>
131
- file.
136
+ file. Uncomment the fractal you&#8217;d like to create before running.
132
137
  </p>
133
138
  <p>
134
139
  License:
@@ -2,7 +2,7 @@
2
2
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
3
3
  <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
4
4
  <head>
5
- <title>File: examples.rb [Ruby Fractal Library - 1.2.0]</title>
5
+ <title>File: examples.rb [Ruby Fractal Library - 1.2.1]</title>
6
6
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
7
7
  <meta http-equiv="Content-Script-Type" content="text/javascript" />
8
8
  <link rel="stylesheet" href=".././rdoc-style.css" type="text/css" media="screen" />
@@ -53,7 +53,7 @@
53
53
  </tr>
54
54
  <tr class="top-aligned-row">
55
55
  <td><strong>Last Update:</strong></td>
56
- <td>2009-08-26 20:51:04 -0400</td>
56
+ <td>2009-08-28 22:43:24 -0400</td>
57
57
  </tr>
58
58
  </table>
59
59
  </div>
@@ -80,8 +80,6 @@ information.
80
80
 
81
81
  fractals&nbsp;&nbsp;
82
82
 
83
- RMagick&nbsp;&nbsp;
84
-
85
83
  </div>
86
84
  </div>
87
85
 
@@ -2,7 +2,7 @@
2
2
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
3
3
  <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
4
4
  <head>
5
- <title>File: gpl-2.0.txt [Ruby Fractal Library - 1.2.0]</title>
5
+ <title>File: gpl-2.0.txt [Ruby Fractal Library - 1.2.1]</title>
6
6
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
7
7
  <meta http-equiv="Content-Script-Type" content="text/javascript" />
8
8
  <link rel="stylesheet" href=".././rdoc-style.css" type="text/css" media="screen" />
@@ -53,7 +53,7 @@
53
53
  </tr>
54
54
  <tr class="top-aligned-row">
55
55
  <td><strong>Last Update:</strong></td>
56
- <td>2009-08-26 20:51:04 -0400</td>
56
+ <td>2009-08-28 22:43:24 -0400</td>
57
57
  </tr>
58
58
  </table>
59
59
  </div>
@@ -2,7 +2,7 @@
2
2
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
3
3
  <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
4
4
  <head>
5
- <title>File: algorithms.rb [Ruby Fractal Library - 1.2.0]</title>
5
+ <title>File: algorithms.rb [Ruby Fractal Library - 1.2.1]</title>
6
6
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
7
7
  <meta http-equiv="Content-Script-Type" content="text/javascript" />
8
8
  <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
@@ -53,7 +53,7 @@
53
53
  </tr>
54
54
  <tr class="top-aligned-row">
55
55
  <td><strong>Last Update:</strong></td>
56
- <td>2009-08-26 20:51:04 -0400</td>
56
+ <td>2009-08-28 22:43:24 -0400</td>
57
57
  </tr>
58
58
  </table>
59
59
  </div>
@@ -2,7 +2,7 @@
2
2
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
3
3
  <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
4
4
  <head>
5
- <title>File: renderers.rb [Ruby Fractal Library - 1.2.0]</title>
5
+ <title>File: renderers.rb [Ruby Fractal Library - 1.2.1]</title>
6
6
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
7
7
  <meta http-equiv="Content-Script-Type" content="text/javascript" />
8
8
  <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
@@ -53,7 +53,7 @@
53
53
  </tr>
54
54
  <tr class="top-aligned-row">
55
55
  <td><strong>Last Update:</strong></td>
56
- <td>2009-08-26 20:51:04 -0400</td>
56
+ <td>2009-08-28 22:43:24 -0400</td>
57
57
  </tr>
58
58
  </table>
59
59
  </div>
@@ -2,7 +2,7 @@
2
2
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
3
3
  <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
4
4
  <head>
5
- <title>File: themes.rb [Ruby Fractal Library - 1.2.0]</title>
5
+ <title>File: themes.rb [Ruby Fractal Library - 1.2.1]</title>
6
6
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
7
7
  <meta http-equiv="Content-Script-Type" content="text/javascript" />
8
8
  <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
@@ -53,7 +53,7 @@
53
53
  </tr>
54
54
  <tr class="top-aligned-row">
55
55
  <td><strong>Last Update:</strong></td>
56
- <td>2009-08-26 20:51:04 -0400</td>
56
+ <td>2009-08-28 22:43:24 -0400</td>
57
57
  </tr>
58
58
  </table>
59
59
  </div>
@@ -2,7 +2,7 @@
2
2
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
3
3
  <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
4
4
  <head>
5
- <title>File: fractals.rb [Ruby Fractal Library - 1.2.0]</title>
5
+ <title>File: fractals.rb [Ruby Fractal Library - 1.2.1]</title>
6
6
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
7
7
  <meta http-equiv="Content-Script-Type" content="text/javascript" />
8
8
  <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
@@ -53,7 +53,7 @@
53
53
  </tr>
54
54
  <tr class="top-aligned-row">
55
55
  <td><strong>Last Update:</strong></td>
56
- <td>2009-08-26 20:51:04 -0400</td>
56
+ <td>2009-08-28 22:43:24 -0400</td>
57
57
  </tr>
58
58
  </table>
59
59
  </div>
@@ -3,11 +3,11 @@
3
3
  <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
4
4
  <!--
5
5
 
6
- Classes [Ruby Fractal Library - 1.2.0]
6
+ Classes [Ruby Fractal Library - 1.2.1]
7
7
 
8
8
  -->
9
9
  <head>
10
- <title>Classes [Ruby Fractal Library - 1.2.0]</title>
10
+ <title>Classes [Ruby Fractal Library - 1.2.1]</title>
11
11
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
12
12
  <link rel="stylesheet" href="rdoc-style.css" type="text/css" />
13
13
  <base target="docwin" />
@@ -3,11 +3,11 @@
3
3
  <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
4
4
  <!--
5
5
 
6
- Files [Ruby Fractal Library - 1.2.0]
6
+ Files [Ruby Fractal Library - 1.2.1]
7
7
 
8
8
  -->
9
9
  <head>
10
- <title>Files [Ruby Fractal Library - 1.2.0]</title>
10
+ <title>Files [Ruby Fractal Library - 1.2.1]</title>
11
11
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
12
12
  <link rel="stylesheet" href="rdoc-style.css" type="text/css" />
13
13
  <base target="docwin" />
@@ -3,11 +3,11 @@
3
3
  <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
4
4
  <!--
5
5
 
6
- Methods [Ruby Fractal Library - 1.2.0]
6
+ Methods [Ruby Fractal Library - 1.2.1]
7
7
 
8
8
  -->
9
9
  <head>
10
- <title>Methods [Ruby Fractal Library - 1.2.0]</title>
10
+ <title>Methods [Ruby Fractal Library - 1.2.1]</title>
11
11
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
12
12
  <link rel="stylesheet" href="rdoc-style.css" type="text/css" />
13
13
  <base target="docwin" />
data/doc/index.html CHANGED
@@ -3,11 +3,11 @@
3
3
  <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
4
4
  <!--
5
5
 
6
- Ruby Fractal Library - 1.2.0
6
+ Ruby Fractal Library - 1.2.1
7
7
 
8
8
  -->
9
9
  <head>
10
- <title>Ruby Fractal Library - 1.2.0</title>
10
+ <title>Ruby Fractal Library - 1.2.1</title>
11
11
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
12
12
  </head>
13
13
  <frameset rows="20%, 80%">
data/examples.rb CHANGED
@@ -2,22 +2,22 @@
2
2
 
3
3
  require 'rubygems'
4
4
  require 'fractals'
5
- require 'RMagick'
5
+ # require 'RMagick'
6
6
 
7
7
  include Fractals
8
8
 
9
9
  # Just as version 1.0.0, creating a fractal is as easy as:
10
10
  mandelbrot = Mandelbrot.new
11
- mandelbrot.write
11
+ # mandelbrot.write
12
12
 
13
13
  # Or...
14
- Mandelbrot.new.write
14
+ # Mandelbrot.new.write
15
15
 
16
16
 
17
17
  # Each of the expression's arguments can be modified using a Hash.
18
18
  newton = Newton.new
19
19
  newton.args = {:a => -0.5, :pz => lambda { |z| z**3 - 1 }}
20
- newton.write('newton.png')
20
+ # newton.write('newton.png')
21
21
 
22
22
 
23
23
  # New orbits fractals can be constructed by either inheriting from Fractal or
@@ -27,7 +27,7 @@ fractal = Fractal.new(Complex(0.0, 0.0), {:p => 2}) do |args|
27
27
  args[:z] = args[:z]**args[:p] +
28
28
  Math.sqrt(args[:c])
29
29
  end
30
- fractal.write('new.png')
30
+ # fractal.write('new.png')
31
31
 
32
32
 
33
33
  # Every property has a default value. In this example I've chosen to override
@@ -39,7 +39,7 @@ snowflakes.max_iterations = 100
39
39
  snowflakes.algorithm = Algorithms::NormalizedIterationCount
40
40
  snowflakes.theme = Themes::Winter
41
41
  snowflakes.set_color = [255, 255, 255]
42
- snowflakes.write('snowflakes.png')
42
+ # snowflakes.write('snowflakes.png')
43
43
 
44
44
 
45
45
  # Here I'm creating an animated fractal using RMagick and the RMagickRenderer's
@@ -60,10 +60,10 @@ image_list.iterations = 1
60
60
 
61
61
  (0...50).each { |i|
62
62
  feigenbaum.magnification += (i**2)
63
- image_list << Magick::Image.from_blob(feigenbaum.to_blob('gif'))[0]
63
+ # image_list << Magick::Image.from_blob(feigenbaum.to_blob('gif'))[0]
64
64
  }
65
65
 
66
- image_list.write('feigenbaum.gif')
66
+ # image_list.write('feigenbaum.gif')
67
67
 
68
68
 
69
69
  # Some interesting fractals:
@@ -73,29 +73,29 @@ satellite = Mandelbrot.new(Complex(-0.743643135, 0.131825963))
73
73
  satellite.max_iterations = 1500
74
74
  satellite.magnification = 200000
75
75
  satellite.renderer = Renderers::RMagickRenderer
76
- satellite.write('satellite.jpg')
76
+ # satellite.write('satellite.jpg')
77
77
 
78
78
  # The Feigenbaum Point.
79
79
  feigenbaum = Mandelbrot.new(Complex(-0.1528, 1.0397))
80
80
  feigenbaum.magnification = 25
81
81
  feigenbaum.algorithm = Algorithms::NormalizedIterationCount
82
82
  feigenbaum.theme = Themes::Water
83
- feigenbaum.write('feigenbaum.png')
83
+ # feigenbaum.write('feigenbaum.png')
84
84
 
85
85
  # The Misiurewicz Point.
86
86
  misiurewicz = Mandelbrot.new(Complex(-0.1011, 0.9563))
87
87
  misiurewicz.magnification = 50
88
88
  misiurewicz.algorithm = Algorithms::NormalizedIterationCount
89
- misiurewicz.write('misiurewicz.png')
89
+ # misiurewicz.write('misiurewicz.png')
90
90
 
91
91
  # Seahorse Valley.
92
92
  seahorse_valley = Mandelbrot.new(Complex(-0.8759, 0.2046))
93
93
  seahorse_valley.magnification = 6
94
94
  seahorse_valley.algorithm = Algorithms::NormalizedIterationCount
95
95
  seahorse_valley.theme = Themes::Water
96
- seahorse_valley.write('seahorse_valley.png')
96
+ # seahorse_valley.write('seahorse_valley.png')
97
97
 
98
98
  # The classic Burning Ship.
99
99
  burning_ship = BurningShip.new(Complex(-1.75, -0.04))
100
100
  burning_ship.magnification = 32
101
- burning_ship.write('burning_ship.png')
101
+ # burning_ship.write('burning_ship.png')
@@ -98,7 +98,7 @@ module Fractals
98
98
  # Renders fractals using the PNG library. PNGRenderer is the default
99
99
  # renderer.
100
100
  module PNGRenderer
101
- begin; require 'png'; rescue LoadError; end
101
+ require 'png'
102
102
 
103
103
  # Returns the fractal image as a BLOB.
104
104
  def to_blob()
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fractals
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 1.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryan Baxter
@@ -9,10 +9,29 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-08-26 00:00:00 -04:00
12
+ date: 2009-08-28 00:00:00 -04:00
13
13
  default_executable:
14
- dependencies: []
15
-
14
+ dependencies:
15
+ - !ruby/object:Gem::Dependency
16
+ name: RubyInline
17
+ type: :runtime
18
+ version_requirement:
19
+ version_requirements: !ruby/object:Gem::Requirement
20
+ requirements:
21
+ - - ">="
22
+ - !ruby/object:Gem::Version
23
+ version: 3.8.3
24
+ version:
25
+ - !ruby/object:Gem::Dependency
26
+ name: png
27
+ type: :runtime
28
+ version_requirement:
29
+ version_requirements: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: 1.2.0
34
+ version:
16
35
  description:
17
36
  email: rcbaxter@gmail.com
18
37
  executables: []