Ejemplo n.º 1
0
        public static void Paint(WriteableBitmap bitmap, NoiseVM noise)
        {
            var rng = new XorShift128Plus(noise.RandomSeed.Value);

            WritePixels(bitmap, (x, y) => {
                byte r = (byte)rng.Next(256);
                byte g = (byte)rng.Next(256);
                byte b = (byte)rng.Next(256);
                return(Color.FromRgb(r, g, b));
            });
        }