This is one of port's resources, I'm quite fond of it and I don't think port remembered about it / doesn't care for it / maybe didn't want to post about it.
If it's the 3rd one port, I'll remove it. This takes Blockland's RGB Decimals and converts to HEX.
function hidToChr(%n) //Allows for 255ToHex
{
return getSubStr("0123456789ABCDEF",%n,1);
}
function rgbToHex(%rgb)
{
return s255ToHex(255*getWord(%rgb,0)) @ s255ToHex(255*getWord(%rgb,1)) @ s255ToHex(255*getWord(%rgb,2));
}
function s255ToHex(%d)
{
%r = mFloor(%d/16);
%d -= %r * 16;
return hidToChr(%r) @ hidToChr(%d);
}