trouble with void function.

In the function 'shift_out' I want 'animation' to be changed in like Array1[a][b ] or Array2[a][b ]. So the code will look something like this:

void shift_out(){
for(int a=0; a<5; a++){
      digitalWrite(latchPin, LOW);
      for(int b=0; b<6; b++){
        shiftOut(dataPin, clockPin, MSBFIRST, Array1[a][b]); <--------------------------- 
      }
      digitalWrite(latchPin, HIGH);
      delay(1);
    }
}