make all random pixels be alife
This commit is contained in:
parent
8b8c056a54
commit
f75b0ce854
1 changed files with 1 additions and 1 deletions
|
|
@ -139,7 +139,7 @@ public partial class MainForm1 : Form
|
|||
|
||||
for (int i = 0; i < 4000; i++)
|
||||
{
|
||||
pixelmap.SetPixel(rand.Next(fieldWidth), rand.Next(fieldHeight), rand.Next(3));
|
||||
pixelmap.SetPixel(rand.Next(fieldWidth), rand.Next(fieldHeight), rand.Next(0, 3));
|
||||
}
|
||||
pictureBox.Invalidate();
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue