|
1 | | -<h1>Two-Dimensional Arrays</h1> |
2 | | - |
3 | | -<p> |
4 | | -<table width="656"> |
5 | | - <tr> |
6 | | - |
7 | | -<p class="license">This tutorial is for Processing version 1.1+. If you see any errors or have comments, please <a href="https://github.com/processing/processing-docs/issues?state=open">let us know</a>. This tutorial is from the book, <a href="http://www.processing.org/learning/books/#shiffman">Learning Processing</a>, by Daniel Shiffman, published by Morgan Kaufmann Publishers, Copyright © 2008 Elsevier Inc. All rights reserved.</p> |
8 | | - |
9 | | - <p> </p> |
| 1 | +<table width="650"> |
| 2 | + <tr> |
| 3 | + <td> |
| 4 | + |
| 5 | + <p class="license"> |
| 6 | + This tutorial is from the book <a href="http://www.processing.org/learning/books/#shiffman">Learning Processing</a> by Daniel Shiffman, published by Morgan Kaufmann, © 2008 Elsevier Inc. All rights reserved. If you see any errors or have comments, please <a href="https://github.com/processing/processing-docs/issues?state=open">let us know</a>. |
| 7 | + </p> |
| 8 | + |
| 9 | + <h1 style="line-height: 0.7em;">Two-dimensional Arrays</h1> |
| 10 | + <h3 style="line-height: 0.7em;"><em>Daniel Shiffman</em></h3> |
| 11 | + |
10 | 12 |
|
11 | 13 |
|
12 | | -An <a href="http://www.processing.org/reference/Array.html">array</a> keeps track of multiple pieces of information in linear order, a one-dimensional list. However, the data associated with certain systems (a digital image, a board game, etc.) lives in two dimensions. To visualize this data, we need a multi-dimensional data structure, that is, a multi-dimensional array. |
13 | | -<br /><br /> |
14 | | -A two-dimensional array is really nothing more than an array of arrays (a three-dimensional array is an array of arrays of arrays). Think of your dinner. You could have a one-dimensional list of everything you eat: |
| 14 | + <p class="txt"> |
| 15 | + An <a href="http://www.processing.org/reference/Array.html">array</a> keeps track of multiple pieces of information in linear order, a one-dimensional list. However, the data associated with certain systems (a digital image, a board game, etc.) lives in two dimensions. To visualize this data, we need a multi-dimensional data structure, that is, a multi-dimensional array. A two-dimensional array is really nothing more than an array of arrays (a three-dimensional array is an array of arrays of arrays). Think of your dinner. You could have a one-dimensional list of everything you eat: |
15 | 16 | <br /><br /> |
16 | 17 | <em>(lettuce, tomatoes, salad dressing, steak, mashed potatoes, string beans, cake, ice cream, coffee)</em> |
17 | 18 | <br /><br /> |
@@ -171,11 +172,8 @@ <h1>Two-Dimensional Arrays</h1> |
171 | 172 | } |
172 | 173 | </pre> |
173 | 174 |
|
174 | | - <p> </p> |
175 | | - |
176 | | -<p class="license">This tutorial is for Processing version 1.1+. If you see any errors or have comments, please <a href="https://github.com/processing/processing-docs/issues?state=open">let us know</a>. This tutorial is from the book, <a href="http://www.processing.org/learning/books/#shiffman">Learning Processing</a>, by Daniel Shiffman, published by Morgan Kaufmann Publishers, Copyright © 2008 Elsevier Inc. All rights reserved.</p> |
177 | 175 |
|
178 | 176 | </td> |
179 | 177 | </tr> |
180 | 178 | </table> |
181 | | -</p> |
| 179 | + |
0 commit comments