Rotating

rotate(M, angle) Returns the matrix M rotated angle degrees counterclockwise. The boundary area is set to black.

rotate90(M) Returns the matrix M rotated 90 degrees counterclockwise.

rotate180(M) Returns the matrix M rotated 180 degrees counterclockwise.

rotate270(M) Returns the matrix M rotated 270 degrees counterclockwise.

Arguments: