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
2declare(strict_types=1);
3/**
4 * Pop PHP Framework (https://www.popphp.org/)
5 *
6 * @link       https://github.com/popphp/popphp-framework
7 * @author     Nick Sagona, III <dev@noladev.com>
8 * @copyright  Copyright (c) 2009-2027 NOLA Interactive, LLC.
9 * @license    https://www.popphp.org/license     New BSD License
10 */
11
12/**
13 * @namespace
14 */
15namespace Pop\Image\Effect;
16
17use Pop\Color\Color;
18
19/**
20 * Effect interface
21 *
22 * @category   Pop
23 * @package    Pop\Image
24 * @author     Nick Sagona, III <dev@noladev.com>
25 * @copyright  Copyright (c) 2009-2027 NOLA Interactive, LLC.
26 * @license    https://www.popphp.org/license     New BSD License
27 * @version    5.0.0
28 */
29interface EffectInterface
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, int $tween): array;
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|float
50     */
51    public function calculateSteps(int $curStep, int $start, int $end, int $totalSteps): int|float;
52
53}