Hi everybody, I'm making an HTML editor and got stuck while converting colors to hexadecimal values.
I'm using this code:
This code seems to work with almost all colors. However, when the color is either clRed, clBlue or clGreen, the conversion is done incorrectly.
how can in solve this problem?