Grafika\EditorInterface::rotate PHP Method

rotate() public method

Rotate an image counter-clockwise.
public rotate ( grafika\ImageInterface &$image, integer $angle, Color | null $color = null ) : grafika\EditorInterface
$image grafika\ImageInterface Instance of Image.
$angle integer The angle in degrees.
$color Color | null The Color object containing the background color.
return grafika\EditorInterface An instance of Editor.
    public function rotate(&$image, $angle, $color = null);