Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | n/a |
0 / 0 |
n/a |
0 / 0 |
CRAP | n/a |
0 / 0 |
|||
| 1 | <?php |
| 2 | /** |
| 3 | * Pop PHP Framework (https://www.popphp.org/) |
| 4 | * |
| 5 | * @link https://github.com/popphp/popphp-framework |
| 6 | * @author Nick Sagona, III <dev@noladev.com> |
| 7 | * @copyright Copyright (c) 2009-2025 NOLA Interactive, LLC. |
| 8 | * @license https://www.popphp.org/license New BSD License |
| 9 | */ |
| 10 | |
| 11 | /** |
| 12 | * @namespace |
| 13 | */ |
| 14 | namespace Pop\Image\Effect; |
| 15 | |
| 16 | use Pop\Color\Color; |
| 17 | |
| 18 | /** |
| 19 | * Effect interface |
| 20 | * |
| 21 | * @category Pop |
| 22 | * @package Pop\Image |
| 23 | * @author Nick Sagona, III <dev@noladev.com> |
| 24 | * @copyright Copyright (c) 2009-2025 NOLA Interactive, LLC. |
| 25 | * @license https://www.popphp.org/license New BSD License |
| 26 | * @version 4.1.1 |
| 27 | */ |
| 28 | interface EffectInterface |
| 29 | { |
| 30 | |
| 31 | /** |
| 32 | * Get the blend between 2 colors |
| 33 | * |
| 34 | * @param Color\ColorInterface $color1 |
| 35 | * @param Color\ColorInterface $color2 |
| 36 | * @param int $tween |
| 37 | * @return array |
| 38 | */ |
| 39 | public function getBlend(Color\ColorInterface $color1, Color\ColorInterface $color2, int $tween): array; |
| 40 | |
| 41 | /** |
| 42 | * Calculate the steps between two points |
| 43 | * |
| 44 | * @param int $curStep |
| 45 | * @param int $start |
| 46 | * @param int $end |
| 47 | * @param int $totalSteps |
| 48 | * @return int|float |
| 49 | */ |
| 50 | public function calculateSteps(int $curStep, int $start, int $end, int $totalSteps): int|float; |
| 51 | |
| 52 | } |