rotate

fun rotate(degrees: Int): Image

Rotates the image a certain number of degrees.

Input negative values to rotate counter-clockwise.

Return

A new Image object that is the rotated version of this image.

Parameters

degrees

Degrees to rotate (-359 to 359)