ColorThief\ColorThief::rearrangeColors PHP Méthode

rearrangeColors() private static méthode

private static rearrangeColors ( array $order, integer $color1, integer $color2, integer $color3 ) : array
$order array
$color1 integer
$color2 integer
$color3 integer
Résultat array
    private static function rearrangeColors(array $order, $color1, $color2, $color3)
    {
        $data = array($order[0] => $color1, $order[1] => $color2, $order[2] => $color3);
        return array($data['r'], $data['g'], $data['b']);
    }