ColorThief\ColorThief::getVBoxColorRanges PHP Method

getVBoxColorRanges() private static method

private static getVBoxColorRanges ( VBox $vBox, array $order ) : array
$vBox VBox
$order array
return array
    private static function getVBoxColorRanges(VBox $vBox, array $order)
    {
        $ranges = array('r' => range($vBox->r1, $vBox->r2), 'g' => range($vBox->g1, $vBox->g2), 'b' => range($vBox->b1, $vBox->b2));
        return array($ranges[$order[0]], $ranges[$order[1]], $ranges[$order[2]]);
    }