EffectInterface
in
Effect interface
Tags
Table of Contents
- calculateSteps() : int
- 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
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