예제 #1
0
 private void button2_Click(object sender, System.EventArgs e)
 {
     for (int i = 0; i < Renderer.rezx; i++)
     {
         for (int j = 0; j < Renderer.rezy; j++)
         {
             MyPoint A = Voronoi.GetNearestObject(new PointF(i, j));
             if (A != null)
             {
                 Renderer.grp.FillEllipse(new SolidBrush(A.FillColor), i, j, 2, 2);
             }
         }
     }
     Voronoi.DrawRealm();
 }
예제 #2
0
 private void button3_Click(object sender, System.EventArgs e)
 {
     Voronoi.Points = File.LoadFile(@"..\..\Points.txt");
     Voronoi.DrawRealm();
 }
예제 #3
0
 private void button1_Click(object sender, System.EventArgs e)
 {
     Voronoi.InitializeRealm(10);
     Voronoi.DrawRealm();
 }