Advertisement
Locoluis

Load CGA palette in Paneljam

Jan 17th, 2022
1,100
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var cgacolors = ['000000','0000aa','00aa00','00aaaa','aa0000','aa00aa','aa5500','aaaaaa','555555','5555ff','55ff55','55ffff','ff5555','ff55ff','ffff55','ffffff'];(function() { function iter(i) { if(i >= 16 || i >= cgacolors.length) { return; } jQuery('#clr-' + (i + 1)).click(); jQuery('#clr-' + (i + 1)).dblclick(); setTimeout(function() { jQuery('.colpick_hex_field input[type=text]').val(cgacolors[i]).trigger('change'); jQuery('.colpick_submit').click(); setTimeout(function() { iter(i + 1); }, 500); }, 500); }; iter(0); })();
Advertisement
Advertisement
Advertisement
RAW Paste Data Copied
Advertisement