private static function createRgbArray(array $vals)
    {
        foreach ($vals as $r) {
            foreach ($vals as $g) {
                foreach ($vals as $b) {
                    $colors[] = ['r' => $r, 'g' => $g, 'b' => $b];
                }
            }
        }
        
        return $colors;
    }