EffectInterface
in
Effect interface
Tags
Table of Contents
Methods
- calculateSteps() : int|float
- Calculate the steps between two points
- getBlend() : array<string|int, mixed>
- Get the blend between 2 colors
Methods
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