Forest fire/Java/Graphics: Difference between revisions
no edit summary
(Created page with "The processing and underlying forest encoding works the same as the text version, but the output is to a JPanel instead. <lang java5>import java.awt.Color; import java.awt.Graphi...") |
No edit summary |
||
Line 1:
The processing and underlying forest encoding works the same as the text version, but the output is to a JPanel instead.
<syntaxhighlight lang="java">
import java.awt.Graphics;
import java.util.Arrays;
Line 161 ⟶ 162:
fire2.processN(10);
}
}
</syntaxhighlight>
Output sample:
|