memoscan
← all memos

Memo 0x6ccee0ef…bea1ff on Ethereum

var seed=parseInt(tokenData.hash.slice(0,16),16);function rnd_dec(){return seed^=seed<<13,seed^=seed>>17,((seed^=seed<<5)<0?1+~seed:seed)%1e3/1e3}function rnd_num(e=0,n=1){return e+(n-e)*rnd_dec()}function rnd_int(e=0,n=1){return Math.floor(rnd_num(e,n+1))}function rnd_arr(e){return e[Math.floor(rnd_num(0,.99*e.length))]}var seed_p=parseInt(tokenData.hash.slice(0,16),16);function rnd_dec_p(){return seed_p^=seed_p<<13,seed_p^=seed_p>>17,((seed_p^=seed_p<<5)<0?1+~seed_p:seed_p)%1e3/1e3}function rnd_num_p(e=0,n=1){return e+(n-e)*rnd_dec_p()}class XY{constructor(e,n){this.x=e,this.y=n}}class Grid{constructor(e,n){this.x=e,this.y=n,this.g=[]}}var NUMS=[[3,5,25,23,3],[8,4,24,25,23],[8,3,5,15,14,18,23,25],[3,5,15,13,15,25,23],[25,5,13,15],[5,3,13,15,25,23],[4,8,23,25,15,14,13],[8,3,5,24],[15,13,3,5,25,23,13],[15,13,3,5,25]],SHP_CARDS=[[22,24,18,17,11,3,15,19,18],[11,3,15,23],[22,24,18,17,11,6,7,3,9,10,15,19,18],[11,7,13,9,15,23]],SHP_CHESS=[[1,12,3,14,5,25,21],[6,12,2,13,4,14,10,24,22],[1,7,3,9,5,10,14,24,22,12,6],[11,3,4,10,25,22,14,13,17],[21,17,18,12,7,3,9,14,18,19,25],[21,17,12,8,14,19,25]],SHP_ANIMALS=[[16,12,13,19,14,8,3,9,5,10,14,20,24,22],[1,12,13,7,3,9,8,13,14,5,15,19,18,24,22,18,17,11],[1,7,8,3,4,9,5,15,19,24,25,19,23,22,18,13,21,16,12,6],[13,1,6,10,5,13,11,22,12,23,14,24,15,13]],SHP_SYMBOLS=[[3,25,6,10,21],[6,2,8,4,10,14,20,24,18,22,16,12],[6,7,2,8,4,9,10,14,20,19,24,18,22,17,16,12],[11,7,13,9,15,10,4,2,6,11,17,22,24,19,15],[11,7,8,12,18,14,8,9,15,19,17],[1,20,16,5,23,1]],SHP_LETTERS=[[12,11,21,22,17,18,24,25,19,15,10,4,1,11,12,7,9,14],[1,5,9,7,13,17,19,25,21],[7,17,18,14,8,3,4,10,20,24,21,1,3,8],[1,2,17,20,25,21,1],[1,5,10,9,19,20,25,21,16,17,7,6],[7,17,19,9,4,10,20,24,22,16,6,2,4,9,7],[1,2,14,4,5,25,24,12,22,21],[1,2,8,4,5,10,22,21,16,12,6],[19,13,14,20,24,22,16,6,2,4,10,7,17],[21,6,2,4,10,25,24,14,8,12,14,19,17,22],[1,5,10,17,19,25,21,16,9,7],[1,5,10,9,24,22,7,6]],PALS=[["","#F2F2F2","#BF1534","#87091F","#590A1F","#000000"],["","#BFBFBF","#A6143B","#590E1C","#151A40","#030511"],["","#F2CAA7","#F27507","#8C4303","#401E01","#000000"],["","#FFE09C","#FF91C4","#00EFC7","#02445A","#01061A"],["","#F2BD1D","#F26716","#D90D0D","#BF1542","#081A40"],["","#F6E7C7","#D0D900","#F66A60","#BA2039","#2B1308"],["","#F1DFB9","#F2BB13","#BF871F","#CB5B1B","#5C2D05"],["","#F2C0A2","#846CD9","#3D278C","#351C59","#260F11"],["","#D9D0A3","#EE3988","#851C5B","#43234C","#0F001F"],["","#F2DFCE","#F2C49B","#FF6354","#EB3847","#4A1F2A"],["","#E2C0B1","#C28C77","#A63344","#573440","#001633"],["","#FFC800","#00BF4D","#0071B2","#960012","#260000"],["","#FFFED6","#F8D838","#E74A39","#264773","#062126"],["","#EFEAE7","#C7B2A2","#8F7A6A","#473C32","#1F1A16"],["","#30D9D9","#1EB7D9","#D92344","#0064A1","#061940"],["","#F9F182","#E9A746","#CE2B1B","#A41916","#3A0809"]],DIM=Math.min(window.innerWidth,window.innerHeight),M=DIM/1e3,IG=20*M,MV_Y=35*M,SZ_X=295*M,MV_X=30*M,STRK_CAP=rnd_int(),HEADR_CRV=rnd_num(0,20),NUM1=rnd_int(0,9),NUM2=rnd_num()>.05?rnd_int(1,9):0,C_R=rnd_int(0,15),C=PALS[C_R],SHAPES_R=rnd_int(0,4),SHAPES_C=[SHP_CARDS,SHP_CHESS,SHP_ANIMALS,SHP_SYMBOLS,SHP_LETTERS][SHAPES_R],MULTI_COL=rnd_num()>.5,HEAD_R=rnd_num()>.5,MNMX=[[3,3],[1,2],[2,2],[1,3],[1,3],[1,3],[1,3],[1,1]],MNMX_R=rnd_arr(MNMX),ALGN_R=rnd_int(0,3),ALGN=[p_pl,p_la,p_ca,p_ra][ALGN_R],G=new Grid(3,4);for(let e=IG,n=0;n<4;n++){let t=[170,150,200,320][n]*M,r=[];for(let _=IG,l=0;l<3;l++){let o=new XY(l,n);o.x1=_,o.y1=e,o.x2=_+SZ_X,o.y2=e+t,r.push(o),_+=SZ_X+MV_X}G.g.push(r),e+=t+MV_Y}var ys,PATHS=[];function pull_g(e,n=1,t=1){for(;ys.length>0;){let r=Math.min(ys.length,rnd_int(n,t)),_=ys.slice(0,r),l=[];for(let n of _){let t=ys.indexOf(n);t>-1&&ys.splice(t,1);let r=MULTI_COL?[n,e+1]:[e,n];l.push(r)}PATHS.push(l)}}HEAD_R?(PATHS.push([[0,0],[1,0]]),PATHS.push([[2,0]])):(PATHS.push([[0,0]]),PATHS.push([[1,0],[2,0]]));for(let e=0;e<3;e++)ys=MULTI_COL?[0,1,2]:[1,2,3],pull_g(e,mn=MNMX_R[0],mx=MNMX_R[1]);let Gs=[];for(let e of PATHS){let n=[];for(let t of e)n.push(G.g[t[1]][t[0]]);Gs.push(n)}function line_style(e,n,t){strokeJoin(ROUND),strokeCap([ROUND,PROJECT][t]),strokeWeight(e),stroke(C[n])}function get_lines(e,n,t,r){let _=[];for(let l=n+35*M,o=0;l<r-20*M;l+=20*M,o++)_.push({x1:e+15*M,x2:t-15*M,y:l,i:o});return _}function drw_shp(e,n,t=!0){beginShape();for(let t of e){let e=n[t-1];vertex(e[0],e[1])}t?endShape(CLOSE):endShape()}function get_boxp(e,n,t,r,_=!0){let l=[],o=(t-e)/4,i=(r-n)/4;for(let t=0;t<5;t++){let r=[];for(let _=0;_<5;_++)r.push([e+_*o,n+t*i]);l=_?l.concat(r.reverse()):l.concat(r)}return l}function par_box_la(e){for(let n of e){let e=n.i<6?n.x1+140*M:n.x1;line(e,n.y,n.x2,n.y)}}function par_box_ra(e){for(let n of e){let e=n.i<6?n.x2-140*M:n.x2;line(n.x1,n.y,e,n.y)}}function shadow_box(e,n,t,r,_){let l=e+15*M,o=n+15*M,i=t+15*M,s=r+15*M;noStroke(),fill(C[3]),drw_box(l,o,i,s),noStroke(),fill(C[4]),beginShape(),vertex(t,n),vertex(i,o),vertex(l,o),endShape(CLOSE),beginShape(),vertex(e,r),vertex(l,s),vertex(l,o),endShape(CLOSE),noStroke(),fill(_),drw_box(e,n,t,r),stroke(C[3]),strokeWeight(10*M),strokeCap(PROJECT)}function p_hp(e){for(let n of e){let t=0,r=0;n.i>1&&(n.i==e.length-1&&(r=rnd_num_p(.1,.5)),xline(n.x1,n.x2,n.y,t,r))}}function p_pl(e){for(let n of e){let t=0,r=0;0==n.i&&(t=rnd_num_p(.1,.25)),n.i==e.length-1&&(r=rnd_num_p(.1,.25)),xline(n.x1,n.x2,n.y,t,r)}}function p_ca(e){for(let n of e)r_ca(n.x1,n.x2,n.y)}function p_la(e){for(let n of e)r_la(n.x1,n.x2,n.y)}function p_ra(e){for(let n of e)r_ra(n.x1,n.x2,n.y)}function r_ca(e,n,t){let r=rnd_num_p(0,.3);xline(e,n,t,lp=r,rp=r)}function r_la(e,n,t){xline(e,n,t,lp=0,rp=rnd_num_p(.1,.5))}function r_ra(e,n,t){xline(e,n,t,lp=rnd_num_p(.1,.5),rp=0)}function xline(e,n,t,r=0,_=0){let l=n-e;line(e+l*r,t,n-l*_,t)}function drw_box(e,n,t,r){rect(e,n,t-e,r-n)}function setup(){createCanvas(DIM,DIM),background(C[5]);for(let e=0;e<Gs.length;e++){let n=Gs[e],t=Math.min.apply(Math,n.map(e=>e.x1)),r=Math.min.apply(Math,n.map(e=>e.y1)),_=Math.max.apply(Math,n.map(e=>e.x2)),l=Math.max.apply(Math,n.map(e=>e.y2)),o=get_lines(t,r,_,l),i=rnd_arr([C[1],C[2]]);if(e<2&n.length>1){let e=l-r,n=_-t;rnd_num()>.5?(shadow_box(t,r,t+n*rnd_num(.5,1),r+e/2.5,i),shadow_box(t,r+e/1.75,t+n*rnd_num(.5,1),l,i)):(shadow_box(t,r,t+n*rnd_num(.75,1),r+e/5,i),noStroke(),fill(C[3]),drw_box(t,r+e/2.5,t+n*rnd_num(.5,1),r+e/2),drw_box(t,r+e/1.7,t+n*rnd_num(.5,1),r+e/1.3),drw_box(t,r+e/1.15,t+n*rnd_num(.5,1),r+e/1))}else shadow_box(t,r,_,l,i);if(e<2){if(1==n.length){let e=NUMS[NUM1];strokeJoin(ROUND),strokeWeight(15*M),stroke(C[4]),noFill();let n=_-15*M,t=r+15*M,l=n-125*M,o=t+125*M;if(drw_shp(e,get_boxp(n,t,l,o),!1),NUM2>0){drw_shp(NUMS[NUM2],get_boxp(n-90*M,t,l-90*M,o),!1)}}}else if(rnd_num()>.6){let e=rnd_arr(SHAPES_C);RA_SHAPE=rnd_int()>.5;let n=t+15*M,l=r+15*M,i=n+115*M;RA_SHAPE&&(i=(n=_-15*M)-115*M);let s=get_boxp(n,l,i,l+115*M,RA_SHAPE);line_style(4==SHAPES_R?10*M:5*M,4,0),fill(C[4]),drw_shp(e,s,!0),line_style(10*M,4,STRK_CAP),RA_SHAPE?par_box_ra(o):par_box_la(o)}else if(rnd_num()>.6){let e=t+10*M,n=r+10*M,l=_-10*M,i=r+50*M;noStroke(),fill(C[4]),rect(e,n,l-e,i-n,HEADR_CRV*M);let s=rnd_int(5,25);for(let t=2;t<s;t+=2)line_style(10*M,2,0),point(e+10*t*M,n+20*M);line_style(10*M,3,STRK_CAP),p_hp(o)}else line_style(10*M,3,STRK_CAP),ALGN(o)}}