You are here

function pSurface::setGrid in Visitors 7.2

Same name and namespace in other branches
  1. 7 pChart/class/pSurface.class.php \pSurface::setGrid()

File

pChart/class/pSurface.class.php, line 41

Class

pSurface

Code

function setGrid($XSize = 10, $YSize = 10) {
  for ($X = 0; $X <= $XSize; $X++) {
    for ($Y = 0; $Y <= $YSize; $Y++) {
      $this->Points[$X][$Y] = UNKNOWN;
    }
  }
  $this->GridSizeX = $XSize;
  $this->GridSizeY = $YSize;
}