Function: DisplayShapeMatrix()
void displayShapeMatrix(PShape[][] shapes,int rows, int cols, int size){
int xPos=0;
int yPos=0;
for( int i=0; i< rows; i++){
for( int j=0; j< cols; j++){
shape(shapes[i][j], xPos, yPos);
xPos += size;
} //end inner for-loop (j:cols)
xPos =0;
yPos += size;
} //end outer for-loop (i:rows)
} //end functionPreviousFunction: Populate2DArray( )NextTransforms for Position, Rotation, Scale of ShapeMatrix Elements
Last updated