Wie erstelle ich in C# ein graphisches Plasma?
Habe folgenden Code, welcher aber nur ein Standbild erzeugt.
Für ein Beispiel oder einen Link wäre ich dankbar.
DSS
Bitmap bm = new Bitmap(pictureBoxMain.Image);
Bitmap newBitmap = new Bitmap(bm.Width, bm.Height);
for (int y = 0; y < newBitmap.Height; y++)
{
for (int x = 0; x < newBitmap.Width; x++)
{
int color = (int)(128.0 + (128.0 * Math.Sin((x) / 8.0)));
newBitmap.SetPixel(x, y, Color.FromArgb(color, color, color));
}
}
pictureBoxMain.Image = newBitmap;