function cell(x, y, res) {

        //This stores the position to place the cell on the canvas
        this.x = x;
        this.y = y;
        
        //This is the width and height of the cell
        this.r = res;

        //These are the attributes that will hold the row and column values
        this.col = 0;
        this.row = 0;
        
        //This stores the cell's velocity
        this.xv = 0;
        this.yv = 0;

        //This is the pressure attribute
        this.pressure = 0;

    }
//This function is used to create a cell object.
This function is used to create a cell object.
This function is used to create a cell object .
function cell(x, y, res) {
        this.x = x;
        this.y = y;
        this.r = res;
        this.col = 0;
        this.row = 0;
        this.xv = 0;
        this.yv = 0;
        this.pressure = 0;
    }
function cell ( x , y , res ) { this . x = x ; this . y = y ; this . r = res ; this . col = 0 ; this . row = 0 ; this . xv = 0 ; this . yv = 0 ; this . pressure = 0 ; }
This function is used to create a cell object.
This function is used to create a cell object .
//This stores the position to place the cell on the canvas //This is the width and height of the cell //These are the attributes that will hold the row and column values //This stores the cell's velocity //This is the pressure attribute