質問

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