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(); }
private void button3_Click(object sender, System.EventArgs e) { Voronoi.Points = File.LoadFile(@"..\..\Points.txt"); Voronoi.DrawRealm(); }
private void button1_Click(object sender, System.EventArgs e) { Voronoi.InitializeRealm(10); Voronoi.DrawRealm(); }