AbstractEffect
extends AbstractEditObject
in package
implements
EffectInterface
AbstractYes
Abstract effect class
Tags
Table of Contents
Interfaces
- EffectInterface
- Effect interface
Properties
- $image : mixed
- Image object
Methods
- __construct() : mixed
- Constructor
- calculateSteps() : int|float
- Calculate the steps between two points
- getBlend() : array<string|int, mixed>
- Get the blend between 2 colors
- getImage() : AbstractAdapter|null
- 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|null $image = null ]) : mixed
Instantiate an image edit object
Parameters
- $image : AbstractAdapter|null = null
calculateSteps()
Calculate the steps between two points
public
calculateSteps(int $curStep, int $start, int $end, int $totalSteps) : int|float
Parameters
- $curStep : int
- $start : int
- $end : int
- $totalSteps : int
Return values
int|floatgetBlend()
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|null
Return values
AbstractAdapter|nullhasImage()
Has the image object
public
hasImage() : bool
Return values
boolsetImage()
Set the image object
public
setImage(AbstractAdapter $image) : AbstractEditObject
Parameters
- $image : AbstractAdapter