make all random pixels be alife

This commit is contained in:
EinEtw4s 2023-01-13 10:47:28 +01:00 committed by GitHub
parent f75b0ce854
commit c749c9ff51
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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(0, 3));
pixelmap.SetPixel(rand.Next(fieldWidth), rand.Next(fieldHeight), rand.Next(1, 3));
}
pictureBox.Invalidate();
}