make all random pixels be alife

This commit is contained in:
EinEtw4s 2023-01-13 10:46:43 +01:00 committed by GitHub
parent 8b8c056a54
commit f75b0ce854
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++) 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(); pictureBox.Invalidate();
} }