三原色分别为:红(Red)、绿(Green)、蓝(Blue).
颜色值=(Red)+(Green*256)+(Blue*256*256)
//由三原色值合成颜色整数值 function ColorFromRGB(red, green, blue) { return red + green*256 + blue*256*256; }
三原色分别为:红(Red)、绿(Green)、蓝(Blue).
颜色值=(Red)+(Green*256)+(Blue*256*256)
//由三原色值合成颜色整数值 function ColorFromRGB(red, green, blue) { return red + green*256 + blue*256*256; }