Guest User

Untitled

a guest
May 21st, 2018
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. } else if (typeof aValue1 === "number") {
  2. if (aValue1 < 256 && aValue1 >= 0) {
  3. aColor = p.color(aValue1, aValue1, aValue1, opacityRange);
  4. } else {
  5. var intcolor = 0;
  6. if (aValue1 < 0) {
  7. intcolor = 4294967296 - (aValue1 * -1);
  8. } else {
  9. intcolor = aValue1;
  10. }
  11. var ac = Math.floor((intcolor % 4294967296) / 16777216);
  12. var rc = Math.floor((intcolor % 16777216) / 65536);
  13. var gc = Math.floor((intcolor % 65536) / 256);
  14. var bc = intcolor % 256;
  15. aColor = p.color(rc, gc, bc, ac);
  16. }
Add Comment
Please, Sign In to add comment