문제

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.

도움이 되었습니까?

해결책

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
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top