Exemple #1
0
        private void InitRandomCoefficients()
        {
            var random = new Random();

            randomCoefficients = new List <List <CoefficientsClass> >();

            for (int y = 0; y < height; y++)
            {
                var row = new List <CoefficientsClass>();

                for (int x = 0; x < width * 2; x++)
                {
                    var coefficients = new CoefficientsClass(
                        true,
                        (float)random.NextDouble(),
                        (float)random.NextDouble(),
                        random.Next(1, 100)
                        );

                    row.Add(coefficients);
                }

                randomCoefficients.Add(row);
            }
        }
Exemple #2
0
 static Variables()
 {
     ObjectColor   = new ObjectColorClass(false, Color.White);
     NormalVectors = new NormalVectorsClass(false);
     ColorMode     = FillColorMode.Precise;
     Coefficients  = new CoefficientsClass(false, 0.5f, 0.5f, 32);
     Light         = new LightClass(Color.White, true);
 }