0xa9c2066b…ea61sent to0xa01b85cf…adc2·#24,672,115·view on Etherscan
sans-serif",t.textAlign="center",t.fillText("Left Side Image",H.leftWidth/2,H.leftHeight/2),t.fillText("(Canvas-LeftSide.jpg)",H.leftWidth/2,H.leftHeight/2+30),t.textAlign="left"),ce(t,H.leftWidth,0,H.rightWidth,H.canvasHeight),t.font=`500 ${H.headerFontSize}px 'Helvetica Neue', Helvetica, Arial, sans-serif`,t.fillStyle="#ff00fc",t.textAlign="center",t.textBaseline="top";const a=H.leftWidth+H.rightWidth/2;t.shadowColor="rgba(0, 0, 0, 0.5)",t.shadowBlur=6,t.shadowOffsetX=2,t.shadowOffsetY=2,t.fillText("Punk YoMom",a,H.headerY),t.shadowColor="transparent",t.shadowBlur=0,t.shadowOffsetX=0,t.shadowOffsetY=0,t.textAlign="left";const l=H.punkOffsetX+H.glassesX*o,n=H.punkOffsetY+H.glassesY*o,i=H.glassesWidth*o,s=H.glassesHeight*o,r=u[_];r.dark&&(t.shadowColor="rgba(255, 255, 255, 0.6)",t.shadowBlur=8,t.shadowOffsetX=0,t.shadowOffsetY=0),t.imageSmoothingEnabled=0,t.drawImage($,H.punkOffsetX,H.punkOffsetY,24*o,24*o),r.dark&&(t.shadowColor="transparent",t.shadowBlur=0),re(t,l,n,i,s,o);const f=H.punkOffsetY+24*o,c=H.leftWidth+H.rightWidth/2;t.font=`bold ${H.attributesTitleFontSize}px 'Helvetica Neue', Helvetica, Arial, sans-serif`,t.fillStyle="#000000",t.textAlign="center",t.textBaseline="top",t.letterSpacing="0px",t.shadowColor="rgba(255, 255, 255, 0.6)",t.shadowBlur=4,t.shadowOffsetX=0,t.shadowOffsetY=0,t.fillText("Attributes:",c,f+H.attributesTitleOffsetY),t.shadowColor="transparent",t.shadowBlur=0,t.font=`500 ${H.attributesTextFontSize}px 'Helvetica Neue', Helvetica, Arial, sans-serif`,t.fillStyle="#ff00fc",t.shadowColor="rgba(0, 0, 0, 0.70)",t.shadowBlur=2,t.shadowOffsetX=1,t.shadowOffsetY=1,t.fillText("Modded-VR, Toggle-Cap, V.0, Not-Legit",c,f+H.attributesTextOffsetY),t.shadowColor="transparent",t.shadowBlur=0,t.shadowOffsetX=0,t.shadowOffsetY=0,t.textAlign="left",t.fillStyle="#000000",t.fillRect(0,0,e.width,5),t.fillRect(0,e.height-5,e.width,5),t.fillRect(0,0,5,e.height),t.fillRect(e.width-5,0,5,e.height),t.fillRect(H.leftWidth-2.5,0,5,e.height),de(t,i),le(t),N=requestAnimationFrame(()=>ie(t,e))}function se(t,e){const o=H.punkScale;if(t.clearRect(0,0,e.width,e.height),X&&X.complete&&X.naturalWidth>0){const e=X.naturalWidth/X.naturalHeight,o=H.canvasWidth/H.topImageHeight;let a=0,l=0,n=X.naturalWidth,i=X.naturalHeight;e<o?(i=X.naturalWidth/o,l=(X.naturalHeight-i)/2):(n=X.naturalHeight*o,a=(X.naturalWidth-n)/2),t.drawImage(X,a,l,n,i,0,0,H.canvasWidth,H.topImageHeight)}else t.fillStyle="#d4b896",t.fillRect(0,0,H.canvasWidth,H.topImageHeight),t.fillStyle="#666",t.font="32px 'Montserrat', sans-serif",t.textAlign="center",t.fillText("Top Image Placeholder",H.canvasWidth/2,H.topImageHeight/2),t.fillText("(Canvas-TopSide-Portrait.jpg)",H.canvasWidth/2,H.topImageHeight/2+45),t.textAlign="left";ce(t,0,H.bottomSectionY,H.canvasWidth,H.bottomSectionHeight),t.font=`bold ${H.headerFontSize}px 'Helvetica Neue', Helvetica, Arial, sans-serif`,t.fillStyle="#ff00fc",t.textAlign="center",t.textBaseline="top",t.shadowColor="rgba(0, 0, 0, 0.5)",t.shadowBlur=6,t.shadowOffsetX=2,t.shadowOffsetY=2,t.fillText("Punk YoMom",H.canvasWidth/2,H.bottomSectionY+H.headerY),t.shadowColor="transparent",t.shadowBlur=0,t.shadowOffsetX=0,t.shadowOffsetY=0,t.textAlign="left";const a=H.punkOffsetX+H.glassesX*o,l=H.punkOffsetY+H.glassesY*o,n=H.glassesWidth*o,i=H.glassesHeight*o,s=u[_];s.dark&&(t.shadowColor="rgba(255, 255, 255, 0.6)",t.shadowBlur=8,t.shadowOffsetX=0,t.shadowOffsetY=0),t.imageSmoothingEnabled=0,t.drawImage($,H.punkOffsetX,H.punkOffsetY,24*o,24*o),s.dark&&(t.shadowColor="transparent",t.shadowBlur=0),re(t,a,l,n,i,o);const r=H.punkOffsetY+24*o,f=H.canvasWidth/2;t.textBaseline="alphabetic",t.letterSpacing="0px";const c=r+H.attributesTitleOffsetY+25;t.font=`bold ${H.attributesTitleFontSize}px 'Helvetica Neue', Helvetica, Arial, sans-serif`;const d="Attributes: ",h=t.measureText(d).width;t.font=`bold ${H.attributesTextFontSize}px 'Helvetica Neue', Helvetica, Arial, sans-serif`;const g="Modded-VR, Toggle-Cap, V.0, Not-Legit",p=f-(h+t.measureText(g).width)/2;t.font=`bold ${H.attributesTitleFontSize}px 'Helvetica Neue', Helvetica, Arial, sans-serif`,t.fillStyle="#000000",t.textAlign="left",t.shadowColor="rgba(255, 255, 255, 0.6)",t.shadowBlur=4,t.shadowOffsetX=0,t.shadowOffsetY=0,t.fillText(d,p,c),t.shadowColor="transparent",t.shadowBlur=0,t.font=`bold ${H.attributesTextFontSize}px 'Helvetica Neue', Helvetica, Arial, sans-serif`,t.fillStyle="#ff00fc",t.shadowColor="rgba(0, 0, 0, 0.5)",t.shadowBlur=6,t.shadowOffsetX=2,t.shadowOffsetY=2,t.fillText(g,p+h,c),t.shadowColor="transparent",t.shadowBlur=0,t.shadowOffsetX=0,t.shadowOffsetY=0,t.fillStyle="#000000",t.fillRect(0,0,e.width,5),t.fillRect(0,e.height-5,e.width,5),t.fillRect(0,0,5,e.height),t.fillRect(e.width-5,0,5,e.height),t.fillRect(0,H.topImageHeight-2.5,e.width,5),de(t,n),le(t),N=requestAnimationFrame(()=>se(t,e))}function re(t,e,o,a,l,n){if(t.save(),t.beginPath(),t.rect(e,o,a,l),t.clip(),t.fillStyle="#000000",t.fillRect(e,o,a,l),"CRT_power_on"===V||"CRT_power_off"===V){const n=e+a/2,i=o+l/2,s=parseInt(Pt.slice(1,3),16),r=parseInt(Pt.slice(3,5),16),f=parseInt(Pt.slice(5,7),16);if("dot"===yt||"dot_pause"===yt){const e="dot_pause"===yt?1:Ot,o=2+4*e,a=1+1*e;t.shadowColor=Pt,t.shadowBlur=8+6*e,t.fillStyle=Pt,t.fillRect(n-o/2,i-a/2,o,a),t.shadowBlur=15,t.globalAlpha=.6,t.fillRect(n-o/2,i-a/2,o,a),t.globalAlpha=1,t.shadowBlur=0}else if("expand_h"===yt){const e=6+Ot*(a-6),o=2+1*Ot;t.shadowColor=Pt,t.shadowBlur=12,t.fillStyle=Pt,t.fillRect(n-e/2,i-o/2,e,o),t.shadowBlur=20,t.globalAlpha=.5,t.fillRect(n-e/2,i-o/2,e,o),t.globalAlpha=1,t.shadowBlur=0}else if("expand_v"===yt){const o=a,n=3+Ot*(l-3);t.shadowColor=Pt,t.shadowBlur=10,t.fillStyle=Pt,t.fillRect(e,i-n/2,o,n),t.shadowBlur=0}else if("flash"===yt){const n=1-.85*Ot;t.fillStyle=`rgba(${s}, ${r}, ${f}, ${n})`,t.fillRect(e,o,a,l)}else if("off_flash"===yt){const n=.15+.85*(1-Ot);t.fillStyle=`rgba(${s}, ${r}, ${f}, ${n})`,t.fillRect(e,o,a,l)}else if("off_collapse_v"===yt){const o=a,n=3+(1-Ot)*(l-3);t.shadowColor=Pt,t.shadowBlur=10,t.fillStyle=Pt,t.fillRect(e,i-n/2,o,n),t.shadowBlur=0}else if("off_collapse_h"===yt){const e=1-Ot,o=6+e*(a-6),l=2+1*e;t.shadowColor=Pt,t.shadowBlur=12,t.fillStyle=Pt,t.fillRect(n-o/2,i-l/2,o,l),t.shadowBlur=20,t.globalAlpha=.5,t.fillRect(n-o/2,i-l/2,o,l),t.globalAlpha=1,t.shadowBlur=0}else if("off_dot"===yt){const e=1-Ot,o=2+4*e,a=1+1*e,l=e;t.shadowColor=Pt,t.shadowBlur=8+6*e,t.fillStyle=`rgba(${s}, ${r}, ${f}, ${l})`,t.fillRect(n-o/2,i-a/2,o,a),t.shadowBlur=0}if(H.scanLinesEnabled){t.fillStyle=`rgba(0, 0, 0, ${.7*H.scanLineOpacity})`;for(let n=o;n<o+l;n+=H.scanLineSpacing)t.fillRect(e,n,a,1)}return void t.restore()}const i=H.fontBold?"bold":"normal",s=st?"italic":"normal",r=n*H.fontSize;t.font=`${s} ${i} ${r}px ${H.fontFamily}`,t.textBaseline="middle";const f=o+l/2+2;let c=1,d=H.scrollText;if("blank"===V||"CRT_standby"===V||"CRT_post_blank"===V||"CRT_post_flash_blank"===V?c=0:"typewriter_blink"===V?(c=J,Q.length>0&&(d=Q[Q.length-1].replace(/_/g," "))):"error_flash"===V?(c=J,d="ERROR!!!"):"manic_glitch"===V?d=at.join(""):"typing"===V?d=H.scrollText.substring(0,q).replace(/_/g," "):"word_typing"===V?d=Q[tt].substring(0,et).replace(/_/g," "):"word_pause"===V?d=Q[tt].replace(/_/g," "):"scrolling"===V?d=H.scrollText.replace(/_/g," "):"exit_anim"===V&&(c=0),c&&z){t.shadowColor=z.glow,t.shadowBlur=H.glowBlur1,t.fillStyle=z.color;const o=e+a/2;if("scrolling"===V)t.fillText(d,e+nt,f);else{const e=o-t.measureText(d).width/2;t.fillText(d,e,f)}if(t.shadowBlur=H.glowBlur2,t.globalAlpha=H.glowIntensity,"scrolling"===V)t.fillText(d,e+nt,f);else{const e=o-t.measureText(d).width/2;t.fillText(d,e,f)}t.globalAlpha=1,t.shadowBlur=0}if("exit_anim"===V&&z){if(0===gt.length){const n=e+a/2;let i=H.scrollText;Q.length>0&&(i=Q[Q.length-1]),mt(i,t,n,f,a,l,e,o)}t.shadowColor=z.glow,t.fillStyle=z.color,t.shadowBlur=H.glowBlur1;for(let e=0;e<gt.length;e++){const o=gt[e];t.fillText(o.char,o.x,o.y)}t.shadowBlur=H.glowBlur2,t.globalAlpha=H.glowIntensity;for(let e=0;e<gt.length;e++){const o=gt[e];t.fillText(o.char,o.x,o.y)}t.globalAlpha=1,t.shadowBlur=0}if(H.scanLinesEnabled){t.fillStyle=`rgba(0, 0, 0, ${H.scanLineOpacity})`;for(let n=o;n<o+l;n+=H.scanLineSpacing)t.fillRect(e,n,a,1)}t.restore()}function fe(t,e){const o=u[_],a=o.colors,l=o.accent,n=Math.ceil(t/T),i=Math.ceil(e/T),s=[];for(let t=0;t<i;t++)for(let e=0;e<n;e++){let o;o=b()<.08?l[Math.floor(b()*l.length)]:a[Math.floor(b()*a.length)],s.push({col:e,row:t,color:o})}return{pattern:s,cols:n,rows:i}}function ce(t,e,o,a,l){if("undefined"!=typeof SOLID&&""!==SOLID)return t.globalAlpha=k,t.fillStyle="#"+SOLID,t.fillRect(e,o,a,l),void(t.globalAlpha=1);if(O&&(v&&(A+=.06666666666666667,A>=1&&(y=I,I=null,v=0,A=0)),E++,E>=R[B]&&!v)){E=0;var n=fe(a,l);B<=2?(I=n,v=1,A=0):y=n}y||(y=fe(a,l)),t.globalAlpha=k;for(const a of y.pattern){const l=e+a.col*T,n=o+a.row*T;t.fillStyle=a.color,t.fillRect(l,n,T,T)}if(v&&I){t.globalAlpha=k*A;for(const a of I.pattern){const l=e+a.col*T,n=o+a.row*T;t.fillStyle=a.color,t.fillRect(l,n,T,T)}}t.globalAlpha=1}function de(t,e){if(G)switch(V){case"typing":Z++,Z>=H.typewriterSpeed&&(Z=0,q++,q>=H.scrollText.length&&(V="typewriter_pause",j=0));break;case"typewriter_pause":j++,j>=H.typewriterPauseDuration&&(V="exit_anim",j=0);break;case"typewriter_blink":j++,J&&j>=H.typewriterBlinkOnDuration?(J=0,j=0):!J&&j>=H.typewriterBlinkOffDuration&&(J=1,j=0,K++,K>=H.typewriterBlinkCount&&(V="exit_anim",j=0));break;case"exit_anim":let t=1;for(let e=0;e<gt.length;e++){const o=gt[e];o.dx+=o.dx>0?dt:o.dx<0?-dt:0,o.dy+=o.dy>0?dt:o.dy<0?-dt:0,o.x+=o.dx,o.y+=o.dy,o.y>o.topEdge&&o.y<o.bottomEdge&&o.x>o.leftEdge&&o.x<o.rightEdge&&(t=0)}t&&(V="blank",j=0,gt=[],bt="");break;case"word_typing":ot++,ot>=H.wordTypeSpeed&&(ot=0,et++,et>=Q[tt].length&&(V="word_pause",j=0));break;case"word_pause":j++;let o=tt+1,l=0;for(;o<Q.length;){const t=Vt(Q[o]);if(!(t>0))break;l=t,o++}const n=o>=Q.length,i=l>0?l:n?H.lastWordPauseDuration:H.wordPauseDuration;j>=i&&(n?(V="exit_anim",j=0):(tt=o,et=0,ot=0,V="word_typing"));break;case"blank":if(j++,j>=H.blankDuration){if(Dt.length>0){let t=Dt.shift();t=t.replace("{tokenId}",U),st=0,H.scrollText=t,z=H.neonColors[0],t.length<=H.maxTypewriterLength?(V="typing",q=0,Z=0):(Q=t.trim().split(/\s+/),tt=0,et=0,ot=0,V="word_typing")}else if(Math.random()<H.manicGlitchChance&&!xt&&!St){z={color:"#ff0000",glow:"#ff0000"},V="manic_glitch",j=0,lt=0,at=[];for(let t=0;t<H.manicCharCount;t++)at.push(H.manicChars.charAt(Math.floor(Math.random()*H.manicChars.length)))}else{let t;if(xt&&a)t=a;else if(St){const e=H.messagesArray;t=e[_t%e.length],_t++,z=H.neonColors[Ct%H.neonColors.length],Ct++}else{const e=H.messagesArray;t=e[Math.floor(Math.random()*e.length)]}if(t=t.replace("{tokenId}",U),t.startsWith("*")?(st=1,t=t.substring(1)):st=0,bt="",t.startsWith("^")&&t.length>=2){const e=t.charAt(1);ut[e]&&(bt=ut[e],t=t.substring(2))}t.startsWith(">")?(H.scrollText=t.substring(1).trim(),St||(z=xt?{color:"#fcdb3b",glow:"#fcdb3b"}:H.neonColors[0]),nt=e,it=0,V="scrolling"):"ERROR!!!"===t?(H.scrollText=t,St||(z={color:"#ff0000",glow:"#ff0000"}),V="error_flash",j=0,K=0,J=1):(H.scrollText=t,St||(z=xt?{color:"#fcdb3b",glow:"#fcdb3b"}:H.neonColors[0]),H.scrollText.length<=H.maxTypewriterLength?(V="typing",q=0,Z=0):(Q=H.scrollText.trim().split(/\s+/),tt=0,et=0,ot=0,V="word_typing"))}j=0}break;case"error_flash":if(j++,J&&j>=H.typewriterBlinkOnDuration)J=0,j=0;else if(!J&&j>=H.typewriterBlinkOffDuration&&(J=1,j=0,K++,K>=5)){V="manic_glitch",j=0,lt=0,at=[];for(let t=0;t<H.manicCharCount;t++)at.push(H.manicChars.charAt(Math.floor(Math.random()*H.manicChars.length)))}break;case"manic_glitch":if(j++,lt++,lt>=H.manicSpeed){lt=0;const t=Math.floor(Math.random()*at.length);if(at[t]=H.manicChars.charAt(Math.floor(Math.random()*H.manicChars.length)),Math.random()<.15){const t=H.neonColors;z=t[Math.floor(Math.random()*t.length)]}}j>=H.manicDuration&&(Wt?(Wt=0,V="CRT_post_blank"):V="blank",j=0);break;case"scrolling":if(nt-=H.scrollSpeed,0===it){const t=document.createElement("canvas").getContext("2d"),e=H.punkScale*H.fontSize;t.font=`${H.fontBold?"bold":"normal"} ${e}px ${H.fontFamily}`,it=t.measureText(H.scrollText).width}nt<-it&&(V="blank",j=0,it=0);break;case"CRT_power_on":Mt++,"dot"===yt?(Ot=Mt/Et,Mt>=Et&&(yt="dot_pause",Mt=0,Ot=0)):"dot_pause"===yt?Mt>=Bt&&(yt="expand_h",Mt=0,Ot=0):"expand_h"===yt?(Ot=1-Math.pow(1-Mt/Rt,2),Mt>=Rt&&(yt="expand_v",Mt=0,Ot=0)):"expand_v"===yt?(Ot=1-Math.pow(1-Mt/It,2),Mt>=It&&(yt="flash",Mt=0,Ot=0)):"flash"===yt&&(Ot=Mt/At,Mt>=At&&(Ft++,Ft<vt?(Mt=0,Ot=0):(yt="idle",Mt=0,Ot=0,V="CRT_post_flash_blank",j=0)));break;case"CRT_standby":break;case"CRT_post_flash_blank":if(j++,j>=Yt){Wt=1,z={color:"#ff0000",glow:"#ff0000"},V="manic_glitch",j=0,lt=0,at=[];for(let t=0;t<H.manicCharCount;t++)at.push(H.manicChars.charAt(Math.floor(Math.random()*H.manicChars.length)))}break;case"CRT_post_blank":j++,j>=Yt&&(kt=1,V="blank",j=H.blankDuration);break;case"CRT_power_off":Mt++,"off_flash"===yt?(Ot=Mt/At,Mt>=At&&(yt="off_collapse_v",Mt=0,Ot=0)):"off_collapse_v"===yt?(Ot=1-Math.pow(1-Mt/It,2),Mt>=It&&(yt="off_collapse_h",Mt=0,Ot=0)):"off_collapse_h"===yt?(Ot=1-Math.pow(1-Mt/Rt,2),Mt>=Rt&&(yt="off_dot",Mt=0,Ot=0)):"off_dot"===yt&&(Ot=Mt/Et,Mt>=Et&&(yt="idle",Mt=0,Ot=0,kt=0,V="CRT_standby",j=0))}}window.addEventListener("load",ne);