function normalizeColor(e){return[(e>>16&255)/255,(e>>8&255)/255,(255&e)/255]}[“SCREEN”,”LINEAR_LIGHT”].reduce(((e,n,t)=>Object.assign(e,{[n]:t})),{});class MiniGl{constructor(e,n,t,i=!1){const s=this,o=-1!==document.location.search.toLowerCase().indexOf(“debug=webgl”);s.canvas=e,s.gl=s.canvas.getContext(“webgl”,{antialias:!0}),s.meshes=[];const r=s.gl;n&&t&&this.setSize(n,t),s.lastDebugMsg,s.debug=i&&o?function(e){const n=new Date;n-s.lastDebugMsg>1e3&&console.log(“—“),console.log(n.toLocaleTimeString()+Array(Math.max(0,32-e.length)).join(” “)+e+”: “,…Array.from(arguments).slice(1)),s.lastDebugMsg=n}:()=>{},Object.defineProperties(s,{Material:{enumerable:!1,value:class{constructor(e,n,t={}){const i=this;function o(e,n){const t=r.createShader(e);return r.shaderSource(t,n),r.compileShader #gradient-canvas { width:100%; height:100%; –gradient-color-1: #c3e4ff; –gradient-color-2: #6ec3f4; –gradient-color-3: #eae2ff; –gradient-color-4: #b9beff; } <canvas id=”gradient-canvas” data-transition-in> </canvas>