rotate

Rotate an image counter-clockwise.

rotate ( ImageInterface &$image, int $angle, Color|null $color = null ): EditorInterface 
Parameters
image

Instance of Image.

angle

The angle in degrees.

color

The Color object containing the background color.

Returns
An instance of Editor.