Example #1
0
        public Game1()
        {
            i        = 0;
            graphics = new GraphicsDeviceManager(this);
            Content.RootDirectory = "Content";
            random = new Random();


            Index2[] ind = new Index2[] {
                new Index2(50, 50),
                new Index2(50, 90),
                new Index2(90, 90),
                new Index2(350, 190),
                new Index2(90, 50)
            };
            a = Voronoi.Generate(new Rectangle(0, 0, 640, 480).ToArea(), ind);
        }