Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- } else if (typeof aValue1 === "number") {
- if (aValue1 < 256 && aValue1 >= 0) {
- aColor = p.color(aValue1, aValue1, aValue1, opacityRange);
- } else {
- var intcolor = 0;
- if (aValue1 < 0) {
- intcolor = 4294967296 - (aValue1 * -1);
- } else {
- intcolor = aValue1;
- }
- var ac = Math.floor((intcolor % 4294967296) / 16777216);
- var rc = Math.floor((intcolor % 16777216) / 65536);
- var gc = Math.floor((intcolor % 65536) / 256);
- var bc = intcolor % 256;
- aColor = p.color(rc, gc, bc, ac);
- }
Add Comment
Please, Sign In to add comment