[b[0],b[1],0,b[2],b[3],0,0,0,1];elseif(9!=b.length)throw"can only warp with 2x2 or 3x3 matrix";f.call(this,a.matrixWarp,{matrix:d?y(b):b,texSize:[this.width,this.height],useTextureSpace:c|0});returnthis}functionaa(a,d){varc=x.apply(null,d),e=x.apply(null,a),c=y(c);returnthis.matrixWarp([c[0]*e[0]+c[1]*e[3]+c[2]*e[6],c[0]*e[1]+c[1]*e[4]+c[2]*e[7],c[0]*e[2]+c[1]*e[5]+c[2]*e[8],c[3]*e[0]+c[4]*e[3]+c[5]*e[6],c[3]*e[1]+c[4]*e[4]+c[5]*e[7],c[3]*e[2]+c[4]*e[5]+c[5]*e[8],c[6]*e[0]+c[7]*e[3]+c[8]*e[6],
WebGLRenderingContext.prototype.getExtension=c;WebGLRenderingContext.prototype.getSupportedExtensions=e}})();vara;v.canvas=function(){varb=document.createElement("canvas");try{a=b.getContext("experimental-webgl",{premultipliedAlpha:!1})}catch(d){a=null}if(!a)throw"This browser does not support WebGL";b._={gl:a,isInitialized:!1,texture:null,spareTexture:null,flippedShader:null};b.texture=k(A);b.draw=k(C);b.update=k(D);b.replace=k(E);b.contents=k(F);b.getPixelArray=k(G);b.brightnessContrast=k(H);
case2:a.uniform2fv(c,newFloat32Array(d));break;case3:a.uniform3fv(c,newFloat32Array(d));break;case4:a.uniform4fv(c,newFloat32Array(d));break;case9:a.uniformMatrix3fv(c,!1,newFloat32Array(d));break;case16:a.uniformMatrix4fv(c,!1,newFloat32Array(d));break;default:throw"dont't know how to load uniform \""+e+'" of length '+d.length;}elseif("[object Number]"==Object.prototype.toString.call(d))a.uniform1f(c,d);elsethrow'attempted to set uniform "'+e+'" to invalid value '+(d||"undefined").toString();