grimey
2009-04-28 08:48:29
How do I translate between the SCAR color code, and the equivalent HEX code(generally used in html)? or does a connection not exist?
2009-04-28 08:48:29
2009-04-28 08:58:45
var
r, g, b: Integer;
const
HexStr = '0123456789ABCDEF';
function ToHex(b: Byte): string;
begin
Result := HexStr[Floor(b / 16)] + HexStr[b mod 16];
end;
begin
ColorToRGB(11439723, r, g, b);
WriteLn('Hex = ' + ToHex(r) + ToHex(g) + ToHex(b));
end.
2009-04-28 09:38:59
2009-04-28 09:48:48
2009-04-28 11:03:21
2009-04-28 11:07:43
2009-04-29 01:32:16