quote:
Originally posted by Mattike
var color = (blue<<16) + (green<<8) + red;
Rather
code:
var color = (b<<16) + (g<<8) + r;
Just saw that both the methods give different results
.
code:
var color = (b<<16) + (g<<8) + r; // #001122 => 1444608
var color = eval('0x00'+b+g+r); // #001122 => 139536