I must read some HTML with text color definition in rgb (ex rgb(255,0,0) --> red)
but I want to search inside the HTML code all similar colors (ex rgb(240, 20, 20) --> similar to red)
, or another similar color as rgb(223,12,5)…
I try do convert it in COLORREF
in this mode:
col := RGB(240, 20, 20) --> result = 1316080
col := RGB(255, 0, 0) --> result = 255
but it is not the correct way… Do you have any ideas to have a consecutive value (range) of similar colors?
Thank you