| <html><head></head><body> | |
| <table border=0 cellspacing=0 cellpadding=6> | |
| <tr> | |
| <td valign=top><img src="icon.png"><td valign=top> | |
| <h2>Tutorial 4: Particles</h2> | |
| By Sean Luke | |
| </table> | |
| <font size="-1" color="gray"> | |
| [<a href="tutorial4.html">Tutorial 4</a> documentation] | |
| </font> | |
| <p>Part B (after Tutorial 3) of 2D particles bouncing around on a grid. When particles intersect, they each choose a random direction to go (including staying put). Particles bounce off the wall and leave trails. | |
| <p>This version adds a large red particle whose path does not change, an an additional display. You can inspect the red particle and alter its direction. | |
| <p><hr><font color='red'>Note:</font> this description is different from the one which appears after following the tutorial documentation. This is because the tutorial documentation overrides the <tt>getInfo</tt> method to provide a description. If this method is not overridden, MASON instead tries to display a file called <tt>index.html</tt> stored in the same directory as the simulation (which is what's going on here). | |
| </body></html> | |