public static function rgb($red, $green, $blue)
    {
        self::throwIfInvalidColorComponentValue($red);
        self::throwIfInvalidColorComponentValue($green);
        self::throwIfInvalidColorComponentValue($blue);

        return strtoupper(
            self::convertColorComponentToHex($red) .
            self::convertColorComponentToHex($green) .
            self::convertColorComponentToHex($blue)
        );
    }
public static function rgb($red, $green, $blue)
    {
        self::throwIfInvalidColorComponentValue($red);
        self::throwIfInvalidColorComponentValue($green);
        self::throwIfInvalidColorComponentValue($blue);

        return strtoupper(
            self::convertColorComponentToHex($red) .
            self::convertColorComponentToHex($green) .
            self::convertColorComponentToHex($blue)
        );
    }
public static function rgb ( $ red , $ green , $ blue ) { self :: throwIfInvalidColorComponentValue ( $ red ) ; self :: throwIfInvalidColorComponentValue ( $ green ) ; self :: throwIfInvalidColorComponentValue ( $ blue ) ; return strtoupper ( self :: convertColorComponentToHex ( $ red ) . self :: convertColorComponentToHex ( $ green ) . self :: convertColorComponentToHex ( $ blue ) ) ; }
Returns an RGB color from R, G and B values

@api
@param int $red Red component, 0 - 255
@param int $green Green component, 0 - 255
@param int $blue Blue component, 0 - 255
@return string RGB color
Returns an RGB color from R G and B values