This repository has been archived by the owner on Mar 9, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 21
/
index.html
157 lines (119 loc) · 6.57 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
<!DOCTYPE html>
<html>
<head>
<title>The Nature of Code</title>
<link rel="stylesheet" href="css/fonts.css"/>
<link rel="stylesheet" href="css/natureofcode.css" />
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
<script src="/js/jquery-ui-1.8.23.custom.min.js" type="text/javascript"></script>
<script src="/js/index.js"></script>
<script type = "text/javascript" src="core.js"></script>
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-34673170-1']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
</head>
<body>
<div id="top">
<div id="header">
<h1><a href="/">The <strong>Nature</strong> of Code</a></h1>
<h2>Daniel Shiffman</h2>
</div>
</div>
<div id="middle">
<div id="content">
How can we capture the unpredictable evolutionary and emergent properties of nature in software? How can understanding the mathematical principles behind our physical world help us to create digital worlds? This book focuses on the programming strategies and techniques behind computer simulations of natural systems using <a href="http://www.processing.org">Processing</a>.
<div id="purchase-options">
<div id="purchase-pdf">
<h3>Buy <strong>The Nature of Code</strong> eBook Bundle</h3>
<p>Download the entire book directly from the author.</p>
<ul class="description">
<li>DRM-free</li>
<li>includes PDF, ePub, and Kindle formats</li>
<li>Delivered by email, no login necessary</li>
</ul>
<form method="POST" action="https://natureofcode.herokuapp.com/order" id="slider-form">
<p>Name Your Price:</p>
<fieldset>
<div class="slider-holder">
<div id="slider"></div>
</div>
<input id="amount" type="hidden" name="amount" value="10.00">
<input type="text" id="display-amount" value="$10.00">
</fieldset>
<p>Donate a percentage to the <a href="http://processing.org">Processing Foundation</a>.</p>
<fieldset>
<div class="slider-holder">
<div id="percent-slider"></div>
</div>
<input type="hidden" id="percent" name="donation" value="10">
<input type="text" id="display-percent" name="percent" value="10%">
</fieldset>
<div id="breakdown">
Amount to Processing: <span id="donation-dollars">$0.50</span><br>
Amount to Author: <span id="author-dollars">$9.50</span>
</div>
<input type="submit" id="buy-now" value="Buy Now">
</form>
</div>
<div id="purchase-print">
<img src="book/imgs/noc_print.jpg" style="max-width:100%;">
<h3 style="margin:12px 0 0 0; ">Get the print edition!</h3>
<a class="block-link" href = "https://www.amazon.com/Nature-Code-Simulating-Natural-Processing/dp/0985930802">Order from Amazon</a>
<p style="font-style:italic"><br><a href="quality.html">Problem with the <br>quality of your print?</a></p>
</p>
</p>
</div>
</div>
<div class="row">
<div class="half-box">
<h3>Read the Entire Book Online for Free</h3>
<p>The complete book is available as HTML with interactive Processing.js examples.</p>
<a class="block-link" href="book">Read Now</a>
</div>
<div class="half-box">
<h3>Download the book's code</h3>
<p>All of the <a href="https://github.com/shiffman/The-Nature-of-Code">source files for building the book</a> and <a href="https://github.com/shiffman/The-Nature-of-Code-Examples">the Processing code examples</a> are available on github.</p>
<a class="block-link" href="https://github.com/downloads/shiffman/The-Nature-of-Code-Examples/The-Nature-of-Code-Examples.zip">Download Code</a>
</div>
</div>
</div>
</div>
<div id="bottom">
<div id="footer">
<div class="one-third" id="licenses">
<h4>Licenses</h4>
<p>
<a class="license-badge" rel="license" href="http://creativecommons.org/licenses/by-nc/3.0/"><img alt="Creative Commons License" style="border-width:0" src="https://i.creativecommons.org/l/by-nc/3.0/88x31.png" /></a>
<a class="license-badge" rel="license" href="http://creativecommons.org/licenses/LGPL/2.1/"><img alt="LGPL License" style="border-width:0" src="http://www.gnu.org/graphics/lgplv3-88x31.png" /></a>
</p>
<p>
The book's text and illustrations are licensed under a <a rel="license" href="http://creativecommons.org/licenses/by-nc/3.0/">Creative Commons Attribution-NonCommercial 3.0 Unported License</a>.
</p>
<p>
All of the book's source code is licensed under the <a rel="license" href="http://creativecommons.org/licenses/LGPL/2.1/">GNU Lesser General Public License</a> as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version.
</p>
</div>
<div class="one-third">
<h4>Colophon</h4>
<p>This book was generated with <a href="https://github.com/runemadsen/Magic-Book-Project">The Magic Book Project</a>.
<p>This book would not have been possible without the generous support of <a href="http://www.kickstarter.com/projects/shiffman/the-nature-of-code-book-project">Kickstarter</a> backers.</p>
<p>This book is typeset on the web in Georgia with headers in Proxima Nova.</p>
<p>Please report any mistakes in the book or bugs in the source with a <a href="https://github.com/shiffman/The-Nature-of-Code/issues?sort=created&state=open">github issue</a> or contact me at <span class="eml">daniel at shiffman dot net</span>.</p>
</div>
<div class="one-third">
<h4>Author</h4>
<p>Daniel Shiffman is a professor of the <a href="http://itp.nyu.edu/">Interactive Telecommunications Program</a> at New York University.</p>
<p>He is the author of <a href="http://www.learningprocessing.com/">Learning Processing</a>.</p>
<p><a href="https://twitter.com/shiffman">Twitter</a> <a href="http://github.com/shiffman">Github</a></p>
</div>
</div>
</div>
</body>
</html>