Clamps a RGB color number outside the sRGB color space

Parameters

int|float $n the number to clamp:

Return value

int|float

1 call to CSSmin::clampNumberSrgb()
CSSmin::rgbToHex in advagg_css_compress/yui/CSSMin.inc

File

advagg_css_compress/yui/CSSMin.inc, line 1094

Class

CSSmin

Code

private function clampNumberSrgb($n) {
    return $this->clampNumber($n, 0, 255);
}