\Pop\Image\EffectAbstractEffect

Abstract effect class

Summary

Methods
Properties
Constants
__construct()
getImage()
setImage()
No public properties found
No constants found
getBlend()
calculateSteps()
getHex()
$image
N/A
No private methods found
No private properties found
N/A

Properties

Methods

getBlend()

getBlend(array  $color1, array  $color2, integer  $tween) : array

Get the blend between 2 colors

Parameters

array $color1
array $color2
integer $tween

Throws

\Pop\Image\Effect\Exception

Returns

array

calculateSteps()

calculateSteps(integer  $curStep, integer  $start, integer  $end, integer  $totalSteps) : integer

Calculate the steps between two points

Parameters

integer $curStep
integer $start
integer $end
integer $totalSteps

Returns

integer

getHex()

getHex(array  $color) : string

Get the hex value from a color array

Parameters

array $color

Returns

string