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