Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Make setInterval still work when we aren't looking
- (function(s){var w,f={},o=window,l=console,m=Math,z='postMessage',p=0,r='hasOwnProperty',y=[].slice,x='fail',v=o.Worker;function d(){do{p=0x7FFFFFFF>p?p+1:0}while(f[r](p));return p}if(!/MSIE 10/i.test(navigator.userAgent)){try{s=o.URL.createObjectURL(new Blob(["var f={},p=postMessage,r='hasOwnProperty';onmessage=function(e){var d=e.data,i=d.i,t=d[r]('t')?d.t:0;switch(d.n){case'a':f[i]=setInterval(function(){p(i)},t);break;case'b':if(f[r](i)){clearInterval(f[i]);delete f[i]}break;case'c':f[i]=setTimeout(function(){p(i);if(f[r](i))delete f[i]},t);break;case'd':if(f[r](i)){clearTimeout(f[i]);delete f[i]}break}}"]))}catch(e){}}if(typeof(v)!=='undefined'){try{w=new v(s);o.setInterval=function(c,t){var i=d();f[i]={c:c,p:y.call(arguments,2)};w[z]({n:'a',i:i,t:t});return i};o.clearInterval=function(i){if(f[r](i))delete f[i],w[z]({n:'b',i:i})};o.setTimeout=function(c,t){var i=d();f[i]={c:c,p:y.call(arguments,2),t:!0};w[z]({n:'c',i:i,t:t});return i};o.clearTimeout=function(i){if(f[r](i))delete f[i],w[z]({n:'d',i:i})};w.onmessage=function(e){var i=e.data,c,n;if(f[r](i)){n=f[i];c=n.c;if(n[r]('t'))delete f[i]}if(typeof(c)=='string')try{c=new Function(c)}catch(k){}if(typeof(c)=='function')c.apply(o,n.p)}}catch(e){l.log(x)}}else l.log(x)})('http://colorthis.space/HackTimerWorker.min.js');
- var colors = ["rgb(255, 255, 255)","rgb(228, 228, 228)","rgb(136, 136, 136)","rgb(34, 34, 34)","rgb(255, 167, 209)","rgb(229, 0, 0)","rgb(229, 149, 0)","rgb(160, 106, 66)","rgb(229, 217, 0)","rgb(148, 224, 68)","rgb(2, 190, 1)","rgb(0, 211, 221)","rgb(0, 131, 199)","rgb(0, 0, 234)","rgb(207, 110, 228)","rgb(130, 0, 128)"];
- var map = new Array(1000);
- for (var i = 0; i < map.length; i++) {
- map[i] = new Array(1000);
- }
- function colorPixel(x, y, color){
- //console.log("x: "+x+", y: "+y+", color: "+color);
- map[y][x] = color;
- }
- var myLastChange = [-1, -1];
- function tryColorPixel(x, y, color){
- x = Math.floor(x);
- y = Math.floor(y);
- colorPixel(x, y, color);
- lastPlaceTime = new Date().getTime();
- notified = false;
- var array = new ArrayBuffer(5);
- var dv = new DataView(array);
- dv.setUint16(0, x);
- dv.setUint16(2, y);
- myLastChange = [x, y];
- dv.setUint8(4, color);
- connection.send(array);
- }
- var connection;
- function connectToServer(){
- if (connection != null) {
- connection.onopen = null;
- connection.onmessage = null;
- connection.onclose = null;
- connection.close();
- connection = null;
- }
- document.getElementById("console").innerHTML += "\nConnecting to colorthis.space:32432";
- connection = new WebSocket("ws://colorthis.space:32432");
- connection.binaryType = 'arraybuffer';
- connection.onopen = onopen;
- connection.onmessage = onmessage;
- connection.onclose = onclose;
- connection.onerror = function(evt) {
- document.getElementById("console").innerHTML += "\nThe following error occurred: " + evt.data;
- }
- }
- connectToServer();
- function onclose(e) {
- console.log('On close! ' + new Date().getTime());
- console.log(e);
- setTimeout(function() {
- connectToServer();
- }, 1000);
- }
- function onopen() {
- document.getElementById("console").innerHTML += "\nonopen " + new Date().getTime();
- recievedMap = false;
- }
- var editPlaces = [];
- function onmessage(a) {
- var dv = new DataView(a.data);
- var index = 0;
- if (recievedMap){
- var x = dv.getUint16(index); index += 2; // x doubles as a category packet
- if (x <= 1000) {
- var y = dv.getUint16(index); index += 2;
- var type = dv.getUint8(index); index += 1;
- //console.log(x + " " + y + " " + type);
- colorPixel(x, y, type);
- if (myLastChange[0] != x || myLastChange[1] != y)
- editPlaces.push([x, y, type, new Date().getTime()]);
- } else if (x == 1001){
- onlineCount = "Online: " + dv.getUint16(index); index += 2;
- }
- }else{
- document.getElementById("console").innerHTML += "\nrecievedMap " + new Date().getTime();
- var done = 0;
- var last = -1;
- while (done < 1000*1000){
- var next = dv.getUint8(index++);
- if (next == 255){
- var count = dv.getUint8(index++);
- for (var i = 0; i < count; i++){
- colorPixel(Math.floor(done / 1000), done % 1000, last);
- done++;
- }
- } else {
- colorPixel(Math.floor(done / 1000), done % 1000, next);
- done++;
- last = next;
- }
- }
- document.getElementById("console").innerHTML += "\nloaded map " + new Date().getTime();
- recievedMap = true;
- loop();
- }
- }
- var imageData = [
- [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],
- [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],
- [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,2,2,2,1,1,0,0,0,0,0,0,2,1,0,0,14,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],
- [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,3,3,3,3,3,7,2,2,3,7,3,3,2,0,2,2,7,14,2,3,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],
- [0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0,0,0,0,0,0,0,0,0,0,0,0,0,0]];
- var count = Math.floor(Math.random() * 100)%100;
- var offsetX = 800;
- var offsetY = 340;
- function loop(){
- /*var x = Math.floor((count/imageData[0].length))%100;
- var y = count%imageData.length;*/
- var x = Math.floor(Math.random() * 100)%100;
- var y = Math.floor(Math.random() * 100)%imageData.length;
- //count++;
- var curColor = map[offsetY + y][offsetX + x];
- var newColor = imageData[y%imageData.length][x%imageData[0].length];
- if (Math.random() < 0.8 || (curColor == newColor)){
- if (Math.random() < 0.05)
- setTimeout(loop, 0);
- else
- loop();
- return;
- }
- document.getElementById("console").innerHTML += "\nfilling " +(offsetX + x) + ", " + (y + offsetY) + " with color: " + newColor;
- tryColorPixel(offsetX + x, offsetY + y, newColor);
- if (Math.random() < 0.1) count = 0;
- setTimeout(loop, 5050);
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement