Grafika\EditorInterface::opacity PHP Method

opacity() public method

Change the image opacity.
public opacity ( grafika\ImageInterface &$image, float $opacity ) : grafika\EditorInterface
$image grafika\ImageInterface Instance of Image.
$opacity float The opacity level where 1.0 is fully opaque and 0.0 is fully transparent.
return grafika\EditorInterface An instance of Editor.
    public function opacity(&$image, $opacity);