// round the number to the closest value (255 or 0)functionroundToClosest($color){if($color>255){return255;}elseif($color<0){return0;}return$color;}functionrgb($r,$g,$b){$r=roundToClosest($r);$g=roundToClosest($g);$b=roundToClosest($b);returnsprintf("%02X%02X%02X",$r,$g,$b);}
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
My PHP Solution