Skip to content

Commit 9eb469f

Browse files
committed
cleaning up 2darray tutorial
1 parent 8850b2b commit 9eb469f

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

content/static/tutorials/2darray/index.html

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ <h1>Two-Dimensional Arrays</h1>
2222
<pre>
2323
int[] myArray = {0,1,2,3};
2424
</pre>
25+
<br />
2526
And a two-dimensional array looks like this:
2627
<pre>
2728
int[][] myArray = { {0,1,2,3}, {3,2,1,0}, {3,5,6,1}, {3,8,3,4} };
@@ -98,11 +99,11 @@ <h1>Two-Dimensional Arrays</h1>
9899
}
99100
</pre>
100101
<br />
101-
A two-dimensional array can also be used to store objects, which is especially convenient for programming sketches that involve some sort of "grid" or "board." The following example displays a grid of Cell objects stored in a two-dimensional array. Each cell is a rectangle whose brightness oscillates from 0255 with a sine function.
102+
A two-dimensional array can also be used to store objects, which is especially convenient for programming sketches that involve some sort of "grid" or "board." The following example displays a grid of Cell objects stored in a two-dimensional array. Each cell is a rectangle whose brightness oscillates from 0-255 with a sine function.
102103
<br /><br />
103104
<img src="imgs/cells.jpg">
104105
<pre>
105-
Example: 2D Array of Objects
106+
<a href="http://www.learningprocessing.com/examples/chapter-13/example-13-10/">Example: 2D Array of Objects</a>
106107
// 2D Array of objects
107108
Cell[][] grid;
108109

0 commit comments

Comments
 (0)