Пример #1
0
        public override void Start()
        {
            var width  = 100;
            int height = 100;
            var size   = 8;

            cellGrid = new CustomCellGrid(-width / 2 * size, -height / 2 * size, width, height, size);
            cellGrid.Start();
        }
Пример #2
0
 public CustomCell(int _i, int _j, CustomCellGrid _grid) : base(_i, _j, _grid)
 {
     value          = (float)Basics.Utils.RandomDouble();
     NextValue      = Algorithm;
     rectangleArray = ColoredVertexArray.FromBuffer(rectangleBuffer);
 }