Example #1
0
 private void Form1_Load(object sender, EventArgs e)
 {
     loadGradient(grad1);
     for (int y = 0; y < 5; y++)
     {
         for (int x = 0; x < 5; x++)
         {
             matrix[y, x] = 1;
         }
     }
     button1.Text  = "";
     button2.Text  = "";
     button3.Text  = "";
     button4.Text  = "";
     button5.Text  = "";
     button6.Text  = "";
     button7.Text  = "";
     button8.Text  = "";
     button9.Text  = "";
     button10.Text = "";
     button11.Text = "";
     button12.Text = "";
     button13.Text = "";
     button14.Text = "";
     button15.Text = "";
     button16.Text = "";
     button17.Text = "";
     button18.Text = "";
     button19.Text = "";
     button20.Text = "";
     button21.Text = "";
     button22.Text = "";
     button23.Text = "";
     button24.Text = "";
     button25.Text = "";
     map           = NoiseMap.GetNotSmoothedNoise(100, 100, variance);
     UpdateNoise();
 }
Example #2
0
 private void button27_Click(object sender, EventArgs e)
 {
     map = NoiseMap.GetNotSmoothedNoise(100, 100, variance);
     UpdateNoise();
 }