titanscssc::fixColor PHP Method

fixColor() protected method

make sure a color's components don't go out of bounds
protected fixColor ( $c )
    protected function fixColor($c)
    {
        foreach (range(1, 3) as $i) {
            if ($c[$i] < 0) {
                $c[$i] = 0;
            }
            if ($c[$i] > 255) {
                $c[$i] = 255;
            }
        }
        return $c;
    }
titanscssc