memoscan
← all memos

Memo 0x602d3def…e94d46 on Ethereum

const t="undefined"!=typeof SVG?SVG:"",e="undefined"!=typeof LIMG?LIMG:"./IMAGES/Canvas-LeftSide.jpg",o="undefined"!=typeof TIMG?TIMG:"./IMAGES/Canvas-TopSide-Portrait.jpg",a="undefined"!=typeof MYMSG&&""!==MYMSG?MYMSG:null;function l(){if(window.__galleryModeOverride)return window.__galleryModeOverride;const t=/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent),e=window.innerWidth<768,o=window.innerHeight>window.innerWidth,a="ontouchstart"in window;return t||e||a&&o?"portrait":"landscape"}const n=l(),i="portrait"===n,s=i?.25:1;let r=performance.now(),f=0,c=0;function d(){f++;const t=performance.now(),e=t-r;e>=1e3&&(c=Math.round(1e3*f/e),f=0,r=t)}function h(t,e,o){t.save(),t.font="bold 14px monospace",t.fillStyle="#00ff00",t.textAlign="left",t.textBaseline="top",t.fillText("FPS: "+c+" | Mode: "+n+" | Mult: "+s,e,o),t.restore()}const u={sky:{name:"Sky",colors:["#87CEEB","#E8F4F8"],accent:["#B0E0E6"]},lime:{name:"Phosphor",colors:["#C8E6C9","#E0E0E0"],accent:["#AED581"]},rose:{name:"Plasma",colors:["#FFCDD2","#FFF0F0"],accent:["#F48FB1"]},mint:{name:"Cryo",colors:["#B2DFDB","#E0F2F1"],accent:["#80CBC4"]},lavender:{name:"Nebula",colors:["#D1C4E9","#EDE7F6"],accent:["#B39DDB"]},peach:{name:"Copper",colors:["#FFCCBC","#FFF3E0"],accent:["#FFAB91"]},cloud:{name:"Cloud",colors:["#ECEFF1","#FAFAFA"],accent:["#CFD8DC"]},lemon:{name:"Sulfur",colors:["#FFF9C4","#FFFDE7"],accent:["#FFF176"]},pastel:{name:"Vaporwave",colors:["#ff71ce","#01cdfe","#05ffa1","#b967ff","#fffb96","#ff9f43"],accent:["#ffffff"]},vaporwave:{name:"Molten",colors:["#3a0000","#5c0000","#7a0000","#8b0000","#6e0000","#4d0000"],accent:["#ff0000","#cc0000","#ff3300"],dark:1},neon:{name:"Neon",colors:["#0a0a0a","#1a0a2e","#0a1a2e","#2e0a1a","#0a2e1a"],accent:["#00ff00","#ff0080","#00ffff","#ffff00"],dark:1},sunset:{name:"Sunset",colors:["#1a0a0f","#2d1b1b","#4a2c2a","#6b3d35","#8b4d3d","#a85d45"],accent:["#ff6b35","#ff8c42","#ffd93d"],dark:1},ocean:{name:"Ocean",colors:["#0a1628","#0d2137","#0f2d4a","#123a5c","#15476e","#185480"],accent:["#00d4ff","#00ffcc","#40e0d0"],dark:1},forest:{name:"Jungle",colors:["#0a1a0a","#0d2810","#103318","#154020","#1a4d28","#1f5a30"],accent:["#90ee90","#98fb98","#7cfc00"],dark:1},monochrome:{name:"Monochrome",colors:["#0a0a0a","#1a1a1a","#2a2a2a","#3a3a3a","#4a4a4a","#5a5a5a"],accent:["#ffffff","#cccccc"],dark:1},cyberpunk:{name:"Cyberpunk",colors:["#0d0221","#0f0a3c","#1a1a4e","#2d1b69","#3d2980","#241734","#1c1135"],accent:["#ff00ff","#00ffff","#fcdb3b"],dark:1},dusk:{name:"Dusk",colors:["#2b1a3d","#3c2a4e","#4a3560","#3d2947","#4e3a5c","#352545"],accent:["#f0a050","#e87890","#c8a0e0"],dark:1}};if("undefined"!=typeof PALETTE_OVERRIDES)for(const t in PALETTE_OVERRIDES)u[t]&&Object.assign(u[t],PALETTE_OVERRIDES[t]);function g(t){return function(){t=1831565813+(t|=0)|0;let e=Math.imul(t^t>>>15,1|t);return e=e+Math.imul(e^e>>>7,61|e)^e,((e^e>>>14)>>>0)/4294967296}}const p="undefined"!=typeof SEED&&"0"!==SEED?SEED:String(Math.floor(4294967296*Math.random())),w=0|parseInt(p.slice(-10)),b=g(w),m=Object.keys(u);let x,S;if("undefined"!=typeof SOLID&&""!==SOLID){const t="#"+SOLID;u._solid={name:"Solid",colors:[t,t,t],accent:[t],dark:t,mid:t,light:t},m.push("_solid"),x=m.length-1,S="_solid"}else x="undefined"!=typeof PIDX?PIDX:Math.abs(w)%m.length,S=m[x];let _=S;const C=[8,16,32,64];let T="undefined"!=typeof PXSZ?PXSZ:C[Math.abs(w)%C.length],k=1,y=null,M=null,O=0,E=0,B=0;const R=[0,120,60,30,12,4];let I=null,A=0,v=0;const F=15,Y="undefined"!=typeof MSGS?MSGS:["HELLO I'M CONTRABAND PUNK_{tokenId}","I'M PUNK_10,000",'*>"ENJOY YOUR CONTRABAND"',"I'M THE 10,001TH PUNK","I'M_THE WORLD'S ONLY V.0_PUNK","HOW_ABOUT A_NICE GAME_OF CHESS?","*>PSST... ... ... ...I HATE TO TELL YOU THIS, BUT... YOU'RE NGMI 😎","*ERROR!!!","I'M NOT_LEGIT!",'SATOSHI SAYS "HELLO"','>FRANKIE SAYS "RELAX"',"WE ARE ALL CONTRA!","I_JUST DRAINED YOUR WALLET","*THIS IS ITALIC","*>ITALIC AND SCROLLING"],W={messagesArray:Y,neonColors:[{color:"#39ff14",glow:"#39ff14"},{color:"#00ffff",glow:"#00ffff"},{color:"#ff00ff",glow:"#ff00ff"},{color:"#ff6600",glow:"#ff6600"},{color:"#ffff00",glow:"#ffff00"},{color:"#ff1493",glow:"#ff1493"},{color:"#00ff88",glow:"#00ff88"}],glassesX:9,glassesY:11,glassesWidth:7,glassesHeight:2,scrollText:"",fontFamily:"monospace",fontBold:0,blankDuration:Math.round(150*s),glowBlur1:8,glowBlur2:15,glowIntensity:.5,scanLinesEnabled:1,scanLineSpacing:2,scanLineOpacity:.55,maxTypewriterLength:13,typewriterSpeed:Math.max(1,Math.round(4*s)),typewriterPauseDuration:Math.round(240*s),typewriterBlinkCount:3,typewriterBlinkOnDuration:Math.round(30*s),typewriterBlinkOffDuration:Math.round(30*s),wordTypeSpeed:Math.max(1,Math.round(3*s)),wordPauseDuration:Math.round(49*s),lastWordPauseDuration:Math.round(135*s),manicGlitchChance:.08,manicDuration:Math.round(180*s),manicSpeed:2,manicChars:"!@#$¿%^&*()_+-=[¿¿]5{}|;¿:,.<¿>?/~`░▒▓¬¦█8▀▄▌▐■□Σ▪▫●7○◘4◙◄►▲▼",manicCharCount:13,scrollSpeed:i?4.5:1.5},D={...W,mode:"landscape",canvasWidth:1296,canvasHeight:542,leftWidth:784,leftHeight:542,rightWidth:512,punkScale:18,punkOffsetX:828,punkOffsetY:22,fontSize:1.1,headerFontSize:39,headerY:15,attributesTitleFontSize:25,attributesTitleOffsetY:23,attributesTextFontSize:20,attributesTextOffsetY:53,imageURL:e},L={...W,mode:"portrait",canvasWidth:1080,canvasHeight:1920,topImageHeight:860,bottomSectionY:860,bottomSectionHeight:1060,punkScale:36,punkOffsetX:0,punkOffsetY:921,fontSize:1.075,headerFontSize:77,headerY:45,attributesTitleFontSize:56,attributesTitleOffsetY:57,attributesTextFontSize:48,attributesTextOffsetY:121,imageURL:o};L.punkOffsetX=(L.canvasWidth-24*L.punkScale)/2;const H="portrait"===n?L:D;let P=null,$=null,X=null,N=null,G=1,z=null,U="undefined"!=typeof TID?TID:"#42",V="blank",j=0,K=0,J=1,q=0,Z=0,Q=[],tt=0,et=0,ot=0,at=[],lt=0,nt=0,it=0,st=0,rt=0;const ft=["up","down","split_v","split_h","explode"];let ct=.3,dt=0;const ht=i?{up:1.7,down:1.7,split_v:1.7,split_h:2.8,explode:3.5}:{up:.3,down:.3,split_v:.3,split_h:.5,explode:.63},ut={U:"up",D:"down",V:"split_v",H:"split_h",X:"explode"};let gt=[],pt=0,wt="",bt="";function mt(t,e,o,a,l,n,i,s){const r=H.punkScale*H.fontSize,f=st?"italic":"normal",c=H.fontBold?"bold":"normal";e.font=`${f} ${c} ${r}px ${H.fontFamily}`,wt=t.replace(/_/g," "),bt||(bt=ft[Math.floor(Math.random()*ft.length)]),ct=ht[bt]||.3,pt=0,gt=[];let d=o-e.measureText(wt).width/2;const h=s,u=s+n,g=i,p=i+l;for(let t=0;t<wt.length;t++){const o=wt[t],l=e.measureText(o).width;let n=0,i=0;switch(bt){case"up":i=-ct;break;case"down":i=ct;break;case"split_v":i=t%2==0?-ct:ct;break;case"split_h":n=t<wt.length/2?-ct:ct;break;case"explode":const e=Math.random()*Math.PI*2;n=Math.cos(e)*ct,i=Math.sin(e)*ct}gt.push({char:o,x:d,y:a,dx:n,dy:i,topEdge:h,bottomEdge:u,leftEdge:g,rightEdge:p}),d+=l}}let xt=0,St=0,_t=0,Ct=0,Tt=0,kt=0,yt="idle",Mt=0,Ot=0,Et=Math.round(26*s),Bt=Math.round(15*s),Rt=Math.round(31*s),It=Math.round(53*s),At=Math.round(23*s),vt=3,Ft=0,Yt=i?15:180,Wt=0,Dt=[];const Lt=["GREETINGS","I AM CONTRABAND PUNK_{tokenId}"];let Ht="green",Pt="#33ff33";function $t(t,e){const o=parseInt(e);switch(t){case"dot":Et=o;break;case"pause":Bt=o;break;case"expandH":Rt=o;break;case"expandV":It=o;break;case"flash":At=o;break;case"flashRepeat":vt=o;break;case"postBlank":Yt=o}document.getElementById("CRTLabel_"+t).textContent="postBlank"===t?(o/60).toFixed(1)+"s":o}function Xt(){const t=document.getElementById("CRTColorToggleButton");"white"===Ht?(Ht="green",Pt="#33ff33",t.textContent="Color: Green"):(Ht="white",Pt="#ffffff",t.textContent="Color: White")}function Nt(){const t=`Dot: ${Et}, Pause: ${Bt}, Expand H: ${Rt}, Expand V: ${It}, Flash: ${At}, Flash x: ${vt}, Post Blank: ${(Yt/60).toFixed(1)}s, Color: ${Ht}`;navigator.clipboard.writeText(t).then(function(){alert("Copied!\n\n"+t)})}function Gt(t,e){const o=parseFloat(e);switch(t){case"speed":ct=o;break;case"accel":dt=o}const a=document.getElementById("ExitLabel_"+t);a&&(a.textContent=o.toFixed(2))}function zt(t){"random"===t&&(t=ft[Math.floor(Math.random()*ft.length)]);const e=ht[t]||.3;ct=e;const o=document.getElementById("ExitSlider_speed"),a=document.getElementById("ExitLabel_speed");o&&(o.value=e),a&&(a.textContent=e.toFixed(2)),H.scrollText="TEST_EXIT",z=H.neonColors[Math.floor(Math.random()*H.neonColors.length)],Q=[],st=0,gt=[],bt=t,V="exit_anim",j=0}function Ut(){const t=`EXIT_ANIM_SPEED: ${ct}, EXIT_ANIM_ACCEL: ${dt}`;navigator.clipboard.writeText(t).then(function(){alert("Copied!\n\n"+t)})}function Vt(t){const e=t.match(/^P(\d+\.?\d*)$/i);if(e){const t=parseFloat(e[1]);return Math.round(60*t)}return 0}function jt(t,e){const o=e.getBoundingClientRect(),a=t.clientX-o.left,l=t.clientY-o.top,n=a*(e.width/o.width),i=l*(e.height/o.height),s=H.punkScale,r=H.punkOffsetX,f=H.punkOffsetY,c=r+11*s,d=f+5*s;return n>=c&&n<c+s&&i>=d&&i<d+s?(Jt(),1):n>=r+19*s&&n<r+22*s&&i>=f+12*s&&i<f+14*s?(Kt(),1):0}function Kt(){B++,B>5?(B=0,O=0,E=0,v=0,I=null,A=0,M&&(y=M)):(O||(M=y),O=1,E=0)}function Jt(){"CRT_power_on"!==V&&"CRT_power_off"!==V&&"CRT_post_flash_blank"!==V&&"CRT_post_blank"!==V&&(kt?(yt="off_flash",Mt=0,Ot=0,Ft=0,V="CRT_power_off",j=0,St&&(St=0,z=H.neonColors[0])):(yt="dot",Mt=0,Ot=0,Ft=0,Dt=[...Lt],V="CRT_power_on",j=0))}function qt(){yt="dot",Mt=0,Ot=0,Ft=0,Dt=[...Lt],V="CRT_power_on",j=0}function Zt(t,e){const o=e.getBoundingClientRect(),a=t.clientX-o.left,l=t.clientY-o.top,i=a*(e.width/o.width),s=l*(e.height/o.height),r=H.punkScale,f=H.punkOffsetX,c=H.punkOffsetY,d=f+11*r,h=d+r,u=c+5*r,g=u+r,p=1.725*H.punkScale;let w,b;"portrait"===n?(w=H.canvasWidth-p-50,b=H.bottomSectionY+40):(w=H.leftWidth+H.rightWidth-p-30,b=25);const m=i>=w-10&&i<=w+p+10&&s>=b-10&&s<=b+p+10;var x=i>=f+19*r&&i<f+22*r&&s>=c+12*r&&s<c+14*r;e.style.cursor=m||x||i>=d&&i<h&&s>=u&&s<g?"pointer":"default"}const Qt=[{x:12,y:15},{x:13,y:15}];function te(t,e){const o=e.getBoundingClientRect(),a=t.clientX-o.left,l=t.clientY-o.top,n=a*(e.width/o.width),i=l*(e.height/o.height),s=H.punkScale,r=H.punkOffsetX,f=H.punkOffsetY,c=Qt[0];c.x,c.y,Qt[Qt.length-1].x;for(const t of Qt){const e=r+t.x*s,o=e+s,a=f+t.y*s;if(n>=e&&n<o&&i>=a&&i<a+s)return qt(),1}return 0}function ee(){if(xt)xt=0;else if(a){xt=1;let t=a.replace("{tokenId}",U);if(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(),z={color:"#fcdb3b",glow:"#fcdb3b"},nt=H.glassesWidth*H.punkScale,it=0,V="scrolling"):(H.scrollText=t,z={color:"#fcdb3b",glow:"#fcdb3b"},t.length<=H.maxTypewriterLength?(V="typing",q=0,Z=0):(Q=t.trim().split(/\s+/),tt=0,et=0,ot=0,V="word_typing"))}}function oe(){St=!St,St?(xt=0,_t=0,Ct=0):z=H.neonColors[0]}function ae(t,e){const o=e.getBoundingClientRect(),a=t.clientX-o.left,l=t.clientY-o.top,i=a*(e.width/o.width),s=l*(e.height/o.height),r=1.725*H.punkScale;let f,c;return"portrait"===n?(f=H.canvasWidth-r-50,c=H.bottomSectionY+40):(f=H.leftWidth+H.rightWidth-r-30,c=25),i>=f-10&&i<=f+r+10&&s>=c-10&&s<=c+r+10?(oe(),1):0}function le(t){const e=1.725*H.punkScale;let o,a;"portrait"===n?(o=H.canvasWidth-e-50,a=H.bottomSectionY+40):(o=H.leftWidth+H.rightWidth-e-30,a=25);const l=o+e/2,i=a+e/2,s=e/2+1,r=.38*e+2;t.save(),t.filter="blur(3px)",t.beginPath(),t.arc(l,i,s,0,2*Math.PI),t.fillStyle=St?"rgba(128, 128, 128, 0.9)":"rgba(128, 128, 128, 0.7)",t.fill(),t.filter="none";const f=St?"#00ff44":"#00ccff";St&&(t.shadowColor="#00ff44",t.shadowBlur=10),t.strokeStyle=f,t.lineWidth="portrait"===n?2.5:1.5,t.beginPath(),t.arc(l,i,r,0,2*Math.PI),t.stroke(),t.shadowColor="transparent",t.shadowBlur=0,St&&(Tt+=.015),t.beginPath(),t.arc(l,i,r-1,0,2*Math.PI),t.clip();for(let e=0;e<4;e++){const o=Tt+e*Math.PI/4,a=Math.sin(o);t.beginPath(),t.ellipse(l,i,Math.abs(a)*r,r,0,0,2*Math.PI),t.stroke()}const c=[-.5,0,.5];for(const e of c){const o=i+e*r,a=Math.cos(e)*r;t.beginPath(),t.ellipse(l,o,a,.15*a,0,0,2*Math.PI),t.stroke()}t.restore()}async function ne(){const e=document.getElementById("punkCanvas"),o=document.getElementById("nftContainer"),a=document.getElementById("modeIndicator");function l(t){const o=t.changedTouches?t.changedTouches[0]:t,a={clientX:o.clientX,clientY:o.clientY};ae(a,e)||jt(a,e)?t.preventDefault():G=!G}o&&o.classList.add(n),a&&(a.textContent=n+" mode"),e.width=H.canvasWidth,e.height=H.canvasHeight,"ontouchstart"in window?e.addEventListener("touchend",l):e.onclick=l,e.onmousemove=function(t){Zt(t,e)};const i=e.getContext("2d");P=new Image,t&&t.length>0?await new Promise((e,o)=>{P.onload=e,P.onerror=o,P.src="data:image/svg+xml;base64,"+btoa(t)}):await new Promise((t,e)=>{P.onload=t,P.onerror=e,P.src="./CONTRABAND-punk-Feb2026.svg"}),$=document.createElement("canvas"),$.width=24,$.height=24;var s=$.getContext("2d");s.imageSmoothingEnabled=0,s.drawImage(P,0,0,24,24),X=new Image,X.crossOrigin="anonymous",await new Promise(t=>{X.onload=t,X.onerror=()=>{t()},X.src=H.imageURL}),H.scrollText="",z=H.neonColors[0],yt="dot",Mt=0,Ot=0,Ft=0,Dt=[...Lt],V="CRT_power_on",j=0,"portrait"===n?se(i,e):ie(i,e)}function ie(t,e){const o=H.punkScale;t.clearRect(0,0,e.width,e.height),X&&X.complete&&X.naturalWidth>0?t.drawImage(X,0,0,H.leftWidth,H.leftHeight):(t.fillStyle="#d4b896",t.fillRect(0,0,H.leftWidth,H.leftHeight),t.fillStyle="#666",t.font="20px 'Montserrat',