fractals 1.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (40) hide show
  1. data/README +66 -0
  2. data/Rakefile +65 -0
  3. data/doc/classes/Fractals.html +169 -0
  4. data/doc/classes/Fractals/Algorithms.html +125 -0
  5. data/doc/classes/Fractals/BurningShip.html +172 -0
  6. data/doc/classes/Fractals/Fractal.html +261 -0
  7. data/doc/classes/Fractals/Julia.html +171 -0
  8. data/doc/classes/Fractals/Mandelbrot.html +172 -0
  9. data/doc/classes/Fractals/Newton.html +173 -0
  10. data/doc/classes/Fractals/Renderers.html +118 -0
  11. data/doc/classes/Fractals/Renderers/Base.html +496 -0
  12. data/doc/classes/Fractals/Renderers/JRubyRenderer.html +178 -0
  13. data/doc/classes/Fractals/Renderers/PNGRenderer.html +202 -0
  14. data/doc/classes/Fractals/Renderers/RMagickRenderer.html +210 -0
  15. data/doc/classes/Fractals/Themes.html +131 -0
  16. data/doc/created.rid +1 -0
  17. data/doc/files/README.html +180 -0
  18. data/doc/files/examples_rb.html +122 -0
  19. data/doc/files/gpl-2_0_txt.html +522 -0
  20. data/doc/files/lib/fractals/algorithms_rb.html +90 -0
  21. data/doc/files/lib/fractals/renderers_rb.html +104 -0
  22. data/doc/files/lib/fractals/themes_rb.html +90 -0
  23. data/doc/files/lib/fractals_rb.html +114 -0
  24. data/doc/fr_class_index.html +49 -0
  25. data/doc/fr_file_index.html +37 -0
  26. data/doc/fr_method_index.html +57 -0
  27. data/doc/index.html +21 -0
  28. data/doc/rdoc-style.css +299 -0
  29. data/examples.rb +101 -0
  30. data/gpl-2.0.txt +339 -0
  31. data/lib/fractals.rb +105 -0
  32. data/lib/fractals/algorithms.rb +35 -0
  33. data/lib/fractals/renderers.rb +169 -0
  34. data/lib/fractals/themes.rb +48 -0
  35. data/test/burning_ship_test.rb +19 -0
  36. data/test/julia_test.rb +20 -0
  37. data/test/mandelbrot_test.rb +19 -0
  38. data/test/newton_test.rb +20 -0
  39. data/test/renderer_test.rb +21 -0
  40. metadata +104 -0
@@ -0,0 +1,131 @@
1
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
2
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
3
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
4
+ <head>
5
+ <title>Module: Fractals::Themes [Ruby Fractal Library - 1.2.0]</title>
6
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
7
+ <meta http-equiv="Content-Script-Type" content="text/javascript" />
8
+ <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
9
+ <script type="text/javascript">
10
+ // <![CDATA[
11
+
12
+ function popupCode( url ) {
13
+ window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
14
+ }
15
+
16
+ function toggleCode( id ) {
17
+ if ( document.getElementById )
18
+ elem = document.getElementById( id );
19
+ else if ( document.all )
20
+ elem = eval( "document.all." + id );
21
+ else
22
+ return false;
23
+
24
+ elemStyle = elem.style;
25
+
26
+ if ( elemStyle.display != "block" ) {
27
+ elemStyle.display = "block"
28
+ } else {
29
+ elemStyle.display = "none"
30
+ }
31
+
32
+ return true;
33
+ }
34
+
35
+ // Make codeblocks hidden by default
36
+ document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }<\/style>" )
37
+
38
+ // ]]>
39
+ </script>
40
+
41
+ </head>
42
+ <body>
43
+
44
+
45
+ <div id="classHeader">
46
+ <table class="header-table">
47
+ <tr class="top-aligned-row">
48
+ <td><strong>Module</strong></td>
49
+ <td class="class-name-in-header">Fractals::Themes</td>
50
+ </tr>
51
+ <tr class="top-aligned-row">
52
+ <td><strong>In:</strong></td>
53
+ <td>
54
+
55
+
56
+ <a href="../../files/lib/fractals/themes_rb.html">
57
+
58
+ lib/fractals/themes.rb
59
+
60
+ </a>
61
+
62
+
63
+ <br />
64
+
65
+ </td>
66
+ </tr>
67
+
68
+
69
+ </table>
70
+ </div>
71
+ <!-- banner header -->
72
+
73
+ <div id="bodyContent">
74
+
75
+ <div id="contextContent">
76
+
77
+ <div id="description">
78
+ <p>
79
+ Each themes returns an array of RGB values [R, G, B] for the provided color
80
+ index.
81
+ </p>
82
+ <table>
83
+ <tr><td valign="top"><b>Fire</b>:</td><td>The default theme. Themes::Fire produces bright fiery fractals.
84
+
85
+ </td></tr>
86
+ <tr><td valign="top"><b>Water</b>:</td><td>Deep blues and greens.
87
+
88
+ </td></tr>
89
+ <tr><td valign="top"><b>Winter</b>:</td><td>Lots of blue. Looks best with set_color = [255, 255, 255].
90
+
91
+ </td></tr>
92
+ <tr><td valign="top"><b>None</b>:</td><td>Coordinates outside the fractal set will appear white in color.
93
+
94
+ </td></tr>
95
+ </table>
96
+ <p>
97
+ <br />
98
+ </p>
99
+ <h1>Example:</h1>
100
+ <p>
101
+ mandelbrot = <a href="Mandelbrot.html#M000016">Mandelbrot.new</a><br />
102
+ mandelbrot.theme = <b>Themes::Winter</b>
103
+ </p>
104
+
105
+ </div>
106
+
107
+ </div>
108
+
109
+
110
+ </div>
111
+
112
+ <!-- if includes -->
113
+
114
+ <div id="section">
115
+
116
+
117
+
118
+
119
+ <!-- if method_list -->
120
+
121
+
122
+
123
+
124
+ </div>
125
+
126
+ <div id="validator-badges">
127
+ <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
128
+ </div>
129
+
130
+ </body>
131
+ </html>
data/doc/created.rid ADDED
@@ -0,0 +1 @@
1
+ Wed, 26 Aug 2009 20:52:16 -0400
@@ -0,0 +1,180 @@
1
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
2
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
3
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
4
+ <head>
5
+ <title>File: README [Ruby Fractal Library - 1.2.0]</title>
6
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
7
+ <meta http-equiv="Content-Script-Type" content="text/javascript" />
8
+ <link rel="stylesheet" href=".././rdoc-style.css" type="text/css" media="screen" />
9
+ <script type="text/javascript">
10
+ // <![CDATA[
11
+
12
+ function popupCode( url ) {
13
+ window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
14
+ }
15
+
16
+ function toggleCode( id ) {
17
+ if ( document.getElementById )
18
+ elem = document.getElementById( id );
19
+ else if ( document.all )
20
+ elem = eval( "document.all." + id );
21
+ else
22
+ return false;
23
+
24
+ elemStyle = elem.style;
25
+
26
+ if ( elemStyle.display != "block" ) {
27
+ elemStyle.display = "block"
28
+ } else {
29
+ elemStyle.display = "none"
30
+ }
31
+
32
+ return true;
33
+ }
34
+
35
+ // Make codeblocks hidden by default
36
+ document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }<\/style>" )
37
+
38
+ // ]]>
39
+ </script>
40
+
41
+ </head>
42
+ <body>
43
+
44
+
45
+ <div id="fileHeader">
46
+ <h1>README</h1>
47
+ <table class="header-table">
48
+ <tr class="top-aligned-row">
49
+ <td><strong>Path:</strong></td>
50
+ <td>README
51
+
52
+ </td>
53
+ </tr>
54
+ <tr class="top-aligned-row">
55
+ <td><strong>Last Update:</strong></td>
56
+ <td>2009-08-26 20:51:04 -0400</td>
57
+ </tr>
58
+ </table>
59
+ </div>
60
+ <!-- banner header -->
61
+
62
+ <div id="bodyContent">
63
+
64
+ <div id="contextContent">
65
+
66
+ <div id="description">
67
+ <p>
68
+ <a href="../classes/Fractals.html">Fractals</a> is a library for creating
69
+ fractal images in your Ruby programs. It currently renders the Burning
70
+ Ship, Julia Set, Mandelbrot, and Newton fractals using the Escape Time or
71
+ Normalized Iteration Count algorithm. The Themes module contains a few
72
+ predefined coloring palettes, but the Fractal type will also accept any
73
+ user-defined algorithm or theme.
74
+ </p>
75
+ <p>
76
+ Changes:
77
+ </p>
78
+ <pre>
79
+ There have been a few changes since version 1.1.0. I've removed
80
+ most of the duplicate code, added Procs where appropriate, and
81
+ made the syntax more consistent. The result is much more
82
+ readable and should be easier to maintain.
83
+
84
+ 1. The source code has been split into multiple files. One for
85
+ each module.
86
+ 2. Each of the fractals has been distilled to a single block
87
+ passed to the Fractal base class' constructor. This makes
88
+ it easy to construct new orbits fractals by either
89
+ inheriting from Fractal or instantiating it directly.
90
+ 3. Classes have been added for the Burning Ship and Newton
91
+ fractals.
92
+ 4. A 'Winter' theme has been added.
93
+ 5. Users can now choose which dependancy nightmare they'd
94
+ prefer. PNG, RMagick and JRuby each have their own renderer.
95
+ PNGRenderer is the default, but is easy to override with the
96
+ renderer= method.
97
+ 6. bailout and max_iterations are no longer constructor
98
+ parameters. This is the biggest breaking change.
99
+ 7. Unit tests have been added for each fractal.
100
+ 8. Several rake tasks have been added to make installation and
101
+ gem creation easier.
102
+
103
+ See the documentation for a complete API reference.
104
+ </pre>
105
+ <p>
106
+ Installation:
107
+ </p>
108
+ <pre>
109
+ sudo gem install fractals-1.2.0.gem
110
+ </pre>
111
+ <p>
112
+ Installing from source:
113
+ </p>
114
+ <pre>
115
+ svn checkout http://svn.ryanbaxter.net/fractals/tags/1.2.0 fractals-1.2.0
116
+ cd fractals-1.2.0
117
+ rake install
118
+ </pre>
119
+ <p>
120
+ Using Fractals:
121
+ </p>
122
+ <pre>
123
+ require 'rubygems'
124
+ require 'fractals'
125
+
126
+ mandelbrot = Fractals::Mandelbrot.new
127
+ mandelbrot.write
128
+ </pre>
129
+ <p>
130
+ Examples can be found in the <a href="examples_rb.html">examples.rb</a>
131
+ file.
132
+ </p>
133
+ <p>
134
+ License:
135
+ </p>
136
+ <pre>
137
+ Copyright (c) 2009 Ryan Baxter
138
+
139
+ This program is free software; you can redistribute it and/or
140
+ modify it under the terms of the GNU General Public License
141
+ as published by the Free Software Foundation; either version 2
142
+ of the License, or (at your option) any later version.
143
+
144
+ This program is distributed in the hope that it will be useful,
145
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
146
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
147
+ GNU General Public License for more details.
148
+
149
+ You should have received a copy of the GNU General Public License
150
+ along with this program; if not, write to the Free Software
151
+ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
152
+ </pre>
153
+
154
+ </div>
155
+
156
+ </div>
157
+
158
+
159
+ </div>
160
+
161
+ <!-- if includes -->
162
+
163
+ <div id="section">
164
+
165
+
166
+
167
+
168
+ <!-- if method_list -->
169
+
170
+
171
+
172
+
173
+ </div>
174
+
175
+ <div id="validator-badges">
176
+ <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
177
+ </div>
178
+
179
+ </body>
180
+ </html>
@@ -0,0 +1,122 @@
1
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
2
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
3
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
4
+ <head>
5
+ <title>File: examples.rb [Ruby Fractal Library - 1.2.0]</title>
6
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
7
+ <meta http-equiv="Content-Script-Type" content="text/javascript" />
8
+ <link rel="stylesheet" href=".././rdoc-style.css" type="text/css" media="screen" />
9
+ <script type="text/javascript">
10
+ // <![CDATA[
11
+
12
+ function popupCode( url ) {
13
+ window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
14
+ }
15
+
16
+ function toggleCode( id ) {
17
+ if ( document.getElementById )
18
+ elem = document.getElementById( id );
19
+ else if ( document.all )
20
+ elem = eval( "document.all." + id );
21
+ else
22
+ return false;
23
+
24
+ elemStyle = elem.style;
25
+
26
+ if ( elemStyle.display != "block" ) {
27
+ elemStyle.display = "block"
28
+ } else {
29
+ elemStyle.display = "none"
30
+ }
31
+
32
+ return true;
33
+ }
34
+
35
+ // Make codeblocks hidden by default
36
+ document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }<\/style>" )
37
+
38
+ // ]]>
39
+ </script>
40
+
41
+ </head>
42
+ <body>
43
+
44
+
45
+ <div id="fileHeader">
46
+ <h1>examples.rb</h1>
47
+ <table class="header-table">
48
+ <tr class="top-aligned-row">
49
+ <td><strong>Path:</strong></td>
50
+ <td>examples.rb
51
+
52
+ </td>
53
+ </tr>
54
+ <tr class="top-aligned-row">
55
+ <td><strong>Last Update:</strong></td>
56
+ <td>2009-08-26 20:51:04 -0400</td>
57
+ </tr>
58
+ </table>
59
+ </div>
60
+ <!-- banner header -->
61
+
62
+ <div id="bodyContent">
63
+
64
+ <div id="contextContent">
65
+
66
+ <div id="description">
67
+ <p>
68
+ This file contains a few examples. View the source code for more
69
+ information.
70
+ </p>
71
+
72
+ </div>
73
+
74
+ <div id="requires-list">
75
+ <h3 class="section-bar">Required files</h3>
76
+
77
+ <div class="name-list">
78
+
79
+ rubygems&nbsp;&nbsp;
80
+
81
+ fractals&nbsp;&nbsp;
82
+
83
+ RMagick&nbsp;&nbsp;
84
+
85
+ </div>
86
+ </div>
87
+
88
+ </div>
89
+
90
+
91
+ </div>
92
+
93
+ <!-- if includes -->
94
+
95
+ <div id="includes">
96
+ <h3 class="section-bar">Included Modules</h3>
97
+
98
+ <div id="includes-list">
99
+
100
+ <span class="include-name"><a href="../classes/Fractals.html">Fractals</a></span>
101
+
102
+ </div>
103
+ </div>
104
+
105
+ <div id="section">
106
+
107
+
108
+
109
+
110
+ <!-- if method_list -->
111
+
112
+
113
+
114
+
115
+ </div>
116
+
117
+ <div id="validator-badges">
118
+ <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
119
+ </div>
120
+
121
+ </body>
122
+ </html>
@@ -0,0 +1,522 @@
1
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
2
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
3
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
4
+ <head>
5
+ <title>File: gpl-2.0.txt [Ruby Fractal Library - 1.2.0]</title>
6
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
7
+ <meta http-equiv="Content-Script-Type" content="text/javascript" />
8
+ <link rel="stylesheet" href=".././rdoc-style.css" type="text/css" media="screen" />
9
+ <script type="text/javascript">
10
+ // <![CDATA[
11
+
12
+ function popupCode( url ) {
13
+ window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
14
+ }
15
+
16
+ function toggleCode( id ) {
17
+ if ( document.getElementById )
18
+ elem = document.getElementById( id );
19
+ else if ( document.all )
20
+ elem = eval( "document.all." + id );
21
+ else
22
+ return false;
23
+
24
+ elemStyle = elem.style;
25
+
26
+ if ( elemStyle.display != "block" ) {
27
+ elemStyle.display = "block"
28
+ } else {
29
+ elemStyle.display = "none"
30
+ }
31
+
32
+ return true;
33
+ }
34
+
35
+ // Make codeblocks hidden by default
36
+ document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }<\/style>" )
37
+
38
+ // ]]>
39
+ </script>
40
+
41
+ </head>
42
+ <body>
43
+
44
+
45
+ <div id="fileHeader">
46
+ <h1>gpl-2.0.txt</h1>
47
+ <table class="header-table">
48
+ <tr class="top-aligned-row">
49
+ <td><strong>Path:</strong></td>
50
+ <td>gpl-2.0.txt
51
+
52
+ </td>
53
+ </tr>
54
+ <tr class="top-aligned-row">
55
+ <td><strong>Last Update:</strong></td>
56
+ <td>2009-08-26 20:51:04 -0400</td>
57
+ </tr>
58
+ </table>
59
+ </div>
60
+ <!-- banner header -->
61
+
62
+ <div id="bodyContent">
63
+
64
+ <div id="contextContent">
65
+
66
+ <div id="description">
67
+ <pre>
68
+ GNU GENERAL PUBLIC LICENSE
69
+ Version 2, June 1991
70
+
71
+ Copyright (C) 1989, 1991 Free Software Foundation, Inc.,
72
+ 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
73
+ Everyone is permitted to copy and distribute verbatim copies
74
+ of this license document, but changing it is not allowed.
75
+
76
+ Preamble
77
+
78
+ The licenses for most software are designed to take away your
79
+ </pre>
80
+ <p>
81
+ freedom to share and change it. By contrast, the GNU General Public License
82
+ is intended to guarantee your freedom to share and change free
83
+ software&#8212;to make sure the software is free for all its users. This
84
+ General Public License applies to most of the Free Software
85
+ Foundation&#8217;s software and to any other program whose authors commit
86
+ to using it. (Some other Free Software Foundation software is covered by
87
+ the GNU Lesser General Public License instead.) You can apply it to your
88
+ programs, too.
89
+ </p>
90
+ <pre>
91
+ When we speak of free software, we are referring to freedom, not
92
+ </pre>
93
+ <p>
94
+ price. Our General Public Licenses are designed to make sure that you have
95
+ the freedom to distribute copies of free software (and charge for this
96
+ service if you wish), that you receive source code or can get it if you
97
+ want it, that you can change the software or use pieces of it in new free
98
+ programs; and that you know you can do these things.
99
+ </p>
100
+ <pre>
101
+ To protect your rights, we need to make restrictions that forbid
102
+ </pre>
103
+ <p>
104
+ anyone to deny you these rights or to ask you to surrender the rights.
105
+ These restrictions translate to certain responsibilities for you if you
106
+ distribute copies of the software, or if you modify it.
107
+ </p>
108
+ <pre>
109
+ For example, if you distribute copies of such a program, whether
110
+ </pre>
111
+ <p>
112
+ gratis or for a fee, you must give the recipients all the rights that you
113
+ have. You must make sure that they, too, receive or can get the source
114
+ code. And you must show them these terms so they know their rights.
115
+ </p>
116
+ <pre>
117
+ We protect your rights with two steps: (1) copyright the software, and
118
+ </pre>
119
+ <p>
120
+ (2) offer you this license which gives you legal permission to copy,
121
+ distribute and/or modify the software.
122
+ </p>
123
+ <pre>
124
+ Also, for each author's protection and ours, we want to make certain
125
+ </pre>
126
+ <p>
127
+ that everyone understands that there is no warranty for this free software.
128
+ If the software is modified by someone else and passed on, we want its
129
+ recipients to know that what they have is not the original, so that any
130
+ problems introduced by others will not reflect on the original
131
+ authors&#8217; reputations.
132
+ </p>
133
+ <pre>
134
+ Finally, any free program is threatened constantly by software
135
+ </pre>
136
+ <p>
137
+ patents. We wish to avoid the danger that redistributors of a free program
138
+ will individually obtain patent licenses, in effect making the program
139
+ proprietary. To prevent this, we have made it clear that any patent must be
140
+ licensed for everyone&#8217;s free use or not licensed at all.
141
+ </p>
142
+ <pre>
143
+ The precise terms and conditions for copying, distribution and
144
+ </pre>
145
+ <p>
146
+ modification follow.
147
+ </p>
148
+ <pre>
149
+ GNU GENERAL PUBLIC LICENSE
150
+ TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
151
+
152
+ 0. This License applies to any program or other work which contains
153
+ </pre>
154
+ <p>
155
+ a notice placed by the copyright holder saying it may be distributed under
156
+ the terms of this General Public License. The &#8220;Program&#8221;, below,
157
+ refers to any such program or work, and a &#8220;work based on the
158
+ Program&#8221; means either the Program or any derivative work under
159
+ copyright law: that is to say, a work containing the Program or a portion
160
+ of it, either verbatim or with modifications and/or translated into another
161
+ language. (Hereinafter, translation is included without limitation in the
162
+ term &#8220;modification&#8221;.) Each licensee is addressed as
163
+ &#8220;you&#8221;.
164
+ </p>
165
+ <p>
166
+ Activities other than copying, distribution and modification are not
167
+ covered by this License; they are outside its scope. The act of running the
168
+ Program is not restricted, and the output from the Program is covered only
169
+ if its contents constitute a work based on the Program (independent of
170
+ having been made by running the Program). Whether that is true depends on
171
+ what the Program does.
172
+ </p>
173
+ <pre>
174
+ 1. You may copy and distribute verbatim copies of the Program's
175
+ </pre>
176
+ <p>
177
+ source code as you receive it, in any medium, provided that you
178
+ conspicuously and appropriately publish on each copy an appropriate
179
+ copyright notice and disclaimer of warranty; keep intact all the notices
180
+ that refer to this License and to the absence of any warranty; and give any
181
+ other recipients of the Program a copy of this License along with the
182
+ Program.
183
+ </p>
184
+ <p>
185
+ You may charge a fee for the physical act of transferring a copy, and you
186
+ may at your option offer warranty protection in exchange for a fee.
187
+ </p>
188
+ <pre>
189
+ 2. You may modify your copy or copies of the Program or any portion
190
+ </pre>
191
+ <p>
192
+ of it, thus forming a work based on the Program, and copy and distribute
193
+ such modifications or work under the terms of Section 1 above, provided
194
+ that you also meet all of these conditions:
195
+ </p>
196
+ <pre>
197
+ a) You must cause the modified files to carry prominent notices
198
+ stating that you changed the files and the date of any change.
199
+
200
+ b) You must cause any work that you distribute or publish, that in
201
+ whole or in part contains or is derived from the Program or any
202
+ part thereof, to be licensed as a whole at no charge to all third
203
+ parties under the terms of this License.
204
+
205
+ c) If the modified program normally reads commands interactively
206
+ when run, you must cause it, when started running for such
207
+ interactive use in the most ordinary way, to print or display an
208
+ announcement including an appropriate copyright notice and a
209
+ notice that there is no warranty (or else, saying that you provide
210
+ a warranty) and that users may redistribute the program under
211
+ these conditions, and telling the user how to view a copy of this
212
+ License. (Exception: if the Program itself is interactive but
213
+ does not normally print such an announcement, your work based on
214
+ the Program is not required to print an announcement.)
215
+ </pre>
216
+ <p>
217
+ These requirements apply to the modified work as a whole. If identifiable
218
+ sections of that work are not derived from the Program, and can be
219
+ reasonably considered independent and separate works in themselves, then
220
+ this License, and its terms, do not apply to those sections when you
221
+ distribute them as separate works. But when you distribute the same
222
+ sections as part of a whole which is a work based on the Program, the
223
+ distribution of the whole must be on the terms of this License, whose
224
+ permissions for other licensees extend to the entire whole, and thus to
225
+ each and every part regardless of who wrote it.
226
+ </p>
227
+ <p>
228
+ Thus, it is not the intent of this section to claim rights or contest your
229
+ rights to work written entirely by you; rather, the intent is to exercise
230
+ the right to control the distribution of derivative or collective works
231
+ based on the Program.
232
+ </p>
233
+ <p>
234
+ In addition, mere aggregation of another work not based on the Program with
235
+ the Program (or with a work based on the Program) on a volume of a storage
236
+ or distribution medium does not bring the other work under the scope of
237
+ this License.
238
+ </p>
239
+ <pre>
240
+ 3. You may copy and distribute the Program (or a work based on it,
241
+ </pre>
242
+ <p>
243
+ under Section 2) in object code or executable form under the terms of
244
+ Sections 1 and 2 above provided that you also do one of the following:
245
+ </p>
246
+ <pre>
247
+ a) Accompany it with the complete corresponding machine-readable
248
+ source code, which must be distributed under the terms of Sections
249
+ 1 and 2 above on a medium customarily used for software interchange; or,
250
+
251
+ b) Accompany it with a written offer, valid for at least three
252
+ years, to give any third party, for a charge no more than your
253
+ cost of physically performing source distribution, a complete
254
+ machine-readable copy of the corresponding source code, to be
255
+ distributed under the terms of Sections 1 and 2 above on a medium
256
+ customarily used for software interchange; or,
257
+
258
+ c) Accompany it with the information you received as to the offer
259
+ to distribute corresponding source code. (This alternative is
260
+ allowed only for noncommercial distribution and only if you
261
+ received the program in object code or executable form with such
262
+ an offer, in accord with Subsection b above.)
263
+ </pre>
264
+ <p>
265
+ The source code for a work means the preferred form of the work for making
266
+ modifications to it. For an executable work, complete source code means all
267
+ the source code for all modules it contains, plus any associated interface
268
+ definition files, plus the scripts used to control compilation and
269
+ installation of the executable. However, as a special exception, the source
270
+ code distributed need not include anything that is normally distributed (in
271
+ either source or binary form) with the major components (compiler, kernel,
272
+ and so on) of the operating system on which the executable runs, unless
273
+ that component itself accompanies the executable.
274
+ </p>
275
+ <p>
276
+ If distribution of executable or object code is made by offering access to
277
+ copy from a designated place, then offering equivalent access to copy the
278
+ source code from the same place counts as distribution of the source code,
279
+ even though third parties are not compelled to copy the source along with
280
+ the object code.
281
+ </p>
282
+ <pre>
283
+ 4. You may not copy, modify, sublicense, or distribute the Program
284
+ </pre>
285
+ <p>
286
+ except as expressly provided under this License. Any attempt otherwise to
287
+ copy, modify, sublicense or distribute the Program is void, and will
288
+ automatically terminate your rights under this License. However, parties
289
+ who have received copies, or rights, from you under this License will not
290
+ have their licenses terminated so long as such parties remain in full
291
+ compliance.
292
+ </p>
293
+ <pre>
294
+ 5. You are not required to accept this License, since you have not
295
+ </pre>
296
+ <p>
297
+ signed it. However, nothing else grants you permission to modify or
298
+ distribute the Program or its derivative works. These actions are
299
+ prohibited by law if you do not accept this License. Therefore, by
300
+ modifying or distributing the Program (or any work based on the Program),
301
+ you indicate your acceptance of this License to do so, and all its terms
302
+ and conditions for copying, distributing or modifying the Program or works
303
+ based on it.
304
+ </p>
305
+ <pre>
306
+ 6. Each time you redistribute the Program (or any work based on the
307
+ </pre>
308
+ <p>
309
+ Program), the recipient automatically receives a license from the original
310
+ licensor to copy, distribute or modify the Program subject to these terms
311
+ and conditions. You may not impose any further restrictions on the
312
+ recipients&#8217; exercise of the rights granted herein. You are not
313
+ responsible for enforcing compliance by third parties to this License.
314
+ </p>
315
+ <pre>
316
+ 7. If, as a consequence of a court judgment or allegation of patent
317
+ </pre>
318
+ <p>
319
+ infringement or for any other reason (not limited to patent issues),
320
+ conditions are imposed on you (whether by court order, agreement or
321
+ otherwise) that contradict the conditions of this License, they do not
322
+ excuse you from the conditions of this License. If you cannot distribute so
323
+ as to satisfy simultaneously your obligations under this License and any
324
+ other pertinent obligations, then as a consequence you may not distribute
325
+ the Program at all. For example, if a patent license would not permit
326
+ royalty-free redistribution of the Program by all those who receive copies
327
+ directly or indirectly through you, then the only way you could satisfy
328
+ both it and this License would be to refrain entirely from distribution of
329
+ the Program.
330
+ </p>
331
+ <p>
332
+ If any portion of this section is held invalid or unenforceable under any
333
+ particular circumstance, the balance of the section is intended to apply
334
+ and the section as a whole is intended to apply in other circumstances.
335
+ </p>
336
+ <p>
337
+ It is not the purpose of this section to induce you to infringe any patents
338
+ or other property right claims or to contest validity of any such claims;
339
+ this section has the sole purpose of protecting the integrity of the free
340
+ software distribution system, which is implemented by public license
341
+ practices. Many people have made generous contributions to the wide range
342
+ of software distributed through that system in reliance on consistent
343
+ application of that system; it is up to the author/donor to decide if he or
344
+ she is willing to distribute software through any other system and a
345
+ licensee cannot impose that choice.
346
+ </p>
347
+ <p>
348
+ This section is intended to make thoroughly clear what is believed to be a
349
+ consequence of the rest of this License.
350
+ </p>
351
+ <pre>
352
+ 8. If the distribution and/or use of the Program is restricted in
353
+ </pre>
354
+ <p>
355
+ certain countries either by patents or by copyrighted interfaces, the
356
+ original copyright holder who places the Program under this License may add
357
+ an explicit geographical distribution limitation excluding those countries,
358
+ so that distribution is permitted only in or among countries not thus
359
+ excluded. In such case, this License incorporates the limitation as if
360
+ written in the body of this License.
361
+ </p>
362
+ <pre>
363
+ 9. The Free Software Foundation may publish revised and/or new versions
364
+ </pre>
365
+ <p>
366
+ of the General Public License from time to time. Such new versions will be
367
+ similar in spirit to the present version, but may differ in detail to
368
+ address new problems or concerns.
369
+ </p>
370
+ <p>
371
+ Each version is given a distinguishing version number. If the Program
372
+ specifies a version number of this License which applies to it and
373
+ &#8220;any later version&#8221;, you have the option of following the terms
374
+ and conditions either of that version or of any later version published by
375
+ the Free Software Foundation. If the Program does not specify a version
376
+ number of this License, you may choose any version ever published by the
377
+ Free Software Foundation.
378
+ </p>
379
+ <pre>
380
+ 10. If you wish to incorporate parts of the Program into other free
381
+ </pre>
382
+ <p>
383
+ programs whose distribution conditions are different, write to the author
384
+ to ask for permission. For software which is copyrighted by the Free
385
+ Software Foundation, write to the Free Software Foundation; we sometimes
386
+ make exceptions for this. Our decision will be guided by the two goals of
387
+ preserving the free status of all derivatives of our free software and of
388
+ promoting the sharing and reuse of software generally.
389
+ </p>
390
+ <pre>
391
+ NO WARRANTY
392
+
393
+ 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
394
+ </pre>
395
+ <p>
396
+ FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
397
+ OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
398
+ PROVIDE THE PROGRAM &#8220;AS IS&#8221; WITHOUT WARRANTY OF ANY KIND,
399
+ EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
400
+ WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE
401
+ ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU.
402
+ SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY
403
+ SERVICING, REPAIR OR CORRECTION.
404
+ </p>
405
+ <pre>
406
+ 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
407
+ </pre>
408
+ <p>
409
+ WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
410
+ REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
411
+ INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
412
+ OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
413
+ TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
414
+ YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
415
+ PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
416
+ POSSIBILITY OF SUCH DAMAGES.
417
+ </p>
418
+ <pre>
419
+ END OF TERMS AND CONDITIONS
420
+
421
+ How to Apply These Terms to Your New Programs
422
+
423
+ If you develop a new program, and you want it to be of the greatest
424
+ </pre>
425
+ <p>
426
+ possible use to the public, the best way to achieve this is to make it free
427
+ software which everyone can redistribute and change under these terms.
428
+ </p>
429
+ <pre>
430
+ To do so, attach the following notices to the program. It is safest
431
+ </pre>
432
+ <p>
433
+ to attach them to the start of each source file to most effectively convey
434
+ the exclusion of warranty; and each file should have at least the
435
+ &#8220;copyright&#8221; line and a pointer to where the full notice is
436
+ found.
437
+ </p>
438
+ <pre>
439
+ &lt;one line to give the program's name and a brief idea of what it does.&gt;
440
+ Copyright (C) &lt;year&gt; &lt;name of author&gt;
441
+
442
+ This program is free software; you can redistribute it and/or modify
443
+ it under the terms of the GNU General Public License as published by
444
+ the Free Software Foundation; either version 2 of the License, or
445
+ (at your option) any later version.
446
+
447
+ This program is distributed in the hope that it will be useful,
448
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
449
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
450
+ GNU General Public License for more details.
451
+
452
+ You should have received a copy of the GNU General Public License along
453
+ with this program; if not, write to the Free Software Foundation, Inc.,
454
+ 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
455
+ </pre>
456
+ <p>
457
+ Also add information on how to contact you by electronic and paper mail.
458
+ </p>
459
+ <p>
460
+ If the program is interactive, make it output a short notice like this when
461
+ it starts in an interactive mode:
462
+ </p>
463
+ <pre>
464
+ Gnomovision version 69, Copyright (C) year name of author
465
+ Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
466
+ This is free software, and you are welcome to redistribute it
467
+ under certain conditions; type `show c' for details.
468
+ </pre>
469
+ <p>
470
+ The hypothetical commands `show w&#8217; and `show c&#8217; should show the
471
+ appropriate parts of the General Public License. Of course, the commands
472
+ you use may be called something other than `show w&#8217; and `show
473
+ c&#8217;; they could even be mouse-clicks or menu items&#8212;whatever
474
+ suits your program.
475
+ </p>
476
+ <p>
477
+ You should also get your employer (if you work as a programmer) or your
478
+ school, if any, to sign a &#8220;copyright disclaimer&#8221; for the
479
+ program, if necessary. Here is a sample; alter the names:
480
+ </p>
481
+ <pre>
482
+ Yoyodyne, Inc., hereby disclaims all copyright interest in the program
483
+ `Gnomovision' (which makes passes at compilers) written by James Hacker.
484
+
485
+ &lt;signature of Ty Coon&gt;, 1 April 1989
486
+ Ty Coon, President of Vice
487
+ </pre>
488
+ <p>
489
+ This General Public License does not permit incorporating your program into
490
+ proprietary programs. If your program is a subroutine library, you may
491
+ consider it more useful to permit linking proprietary applications with the
492
+ library. If this is what you want to do, use the GNU Lesser General Public
493
+ License instead of this License.
494
+ </p>
495
+
496
+ </div>
497
+
498
+ </div>
499
+
500
+
501
+ </div>
502
+
503
+ <!-- if includes -->
504
+
505
+ <div id="section">
506
+
507
+
508
+
509
+
510
+ <!-- if method_list -->
511
+
512
+
513
+
514
+
515
+ </div>
516
+
517
+ <div id="validator-badges">
518
+ <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
519
+ </div>
520
+
521
+ </body>
522
+ </html>