rotate a program X degrees at beginning of program

rotate a program X degrees at beginning of program

instead of a full 180degree mirror, i want to rotate an entire program 90degrees. 
how do I do this?