Reputation: 3715
I need to generate the RGB(Filter) which is RGBF shortcut color, which numbers are totally different as of the simple RGB color, just take a look at this aliceblue
color example:
RGBF:
0.941176, 0.972549, 1.000000, 1.000000
RGB equivalent:
240,248,255
HEX equivalent:
F0F8FF
The question is - how can I generate the RGBF color from HEX or RGB? I have been google'd quite a bit but it seems like this topic (RGBF
color) is not popular at all.
Upvotes: 0
Views: 720
Reputation: 5661
Not sure what the 4th term in your RGBF sequence is but the other 3 just look like the result of division:
0.941176 = 240/255
0.972549 = 248/255
1.000000 = 255/255
Upvotes: 1