how to rotate matrix scroll by 90 degrees in code

I am on my iPad and it won't copy your code but I will try.

B00110011;
B11001111;
B00111000;
B01010101;
B11011100;
B11110000;
B00000000;
B00011100;

Would be
B11010000;
B11000000;
And so on, each coloumn becomes a row. This rotates the pattern you se.