var ReReReRe = function() { $("#nojs").remove(); var cnt = 0; var inuse = []; var res = [window.innerWidth, window.innerHeight]; var canvas = $("").attr("width", res[0]).attr("height", res[1]).css("position", "absolute").css("width", "100%").css("height", "100%").appendTo($("body")); var context = canvas[0].getContext("2d"); var sources = []; var supportedGCO = (function getGCOModes() { var ctx = document.createElement('canvas').getContext('2d'); //var gCO = ["source-over", "source-in", "source-out", "source-atop", "destination-over", "destination-in", "destination-out", "destination-atop", "lighter", "copy", "xor", "multiply", "screen", "overlay", "darken", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"]; var gCO = ["destination-atop", "lighter", "copy", "xor", "multiply", "screen", "overlay", "darken", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"]; return gCO.filter(function(g) { ctx.globalCompositeOperation = g; return ctx.globalCompositeOperation === g; }); })(); var enabledGCO = {}; supportedGCO.forEach(function(val) { var item = $("