AbstractEffect
extends AbstractEditObject
in package
implements
EffectInterface
Abstract effect class
Tags
Interfaces, Classes, Traits and Enums
- EffectInterface
- Effect interface
Table of Contents
- $image : mixed
- Image object
- __construct() : mixed
- Constructor
- calculateSteps() : int
- Calculate the steps between two points
- getBlend() : array<string|int, mixed>
- Get the blend between 2 colors
- getImage() : AbstractAdapter
- Get the image object
- hasImage() : bool
- Has the image object
- setImage() : AbstractEditObject
- Set the image object
Properties
$image
Image object
protected
mixed
$image
= null
Methods
__construct()
Constructor
public
__construct([AbstractAdapter $image = null ]) : mixed
Instantiate an image edit object
Parameters
- $image : AbstractAdapter = null
Return values
mixed —calculateSteps()
Calculate the steps between two points
public
calculateSteps(int $curStep, int $start, int $end, int $totalSteps) : int
Parameters
- $curStep : int
- $start : int
- $end : int
- $totalSteps : int
Return values
int —getBlend()
Get the blend between 2 colors
public
getBlend(ColorInterface $color1, ColorInterface $color2, int $tween) : array<string|int, mixed>
Parameters
- $color1 : ColorInterface
- $color2 : ColorInterface
- $tween : int
Return values
array<string|int, mixed> —getImage()
Get the image object
public
getImage() : AbstractAdapter
Return values
AbstractAdapter —hasImage()
Has the image object
public
hasImage() : bool
Return values
bool —setImage()
Set the image object
public
setImage(AbstractAdapter $image) : AbstractEditObject
Parameters
- $image : AbstractAdapter