View Raw SPL
rgb2hex(r = 0, g = 0, b = 0)
{
        local h;

        h = rgb2int(r, g, b);
        h = int2hex(h);

        return(h);
}