如何将RGB整数转换为相应的RGB元组(R,G,B)?看起来很简单,但我在谷歌上找不到任何东西.
(R,G,B)
我知道,每RGB (r,g,b)你有整n = r256^2 + g256 + b,我怎么能解决在Python相反,IE给出的n,我需要的r,g,b值.
(r,g,b)
n = r256^2 + g256 + b
n
r
g
b
python rgb integer
integer ×1
python ×1
rgb ×1