memoscan
← all memos

Memo 0x6177aaf3…33fbfa on Ethereum

var seed=parseInt(tokenData.hash.slice(0,16),16),R=Math.floor(rnd_num(0,255)),G=Math.floor(rnd_num(0,255)),B=Math.floor(rnd_num(0,255)),R2=Math.floor(rnd_num(0,255)),G2=Math.floor(rnd_num(0,255)),B2=Math.floor(rnd_num(0,255)),smooth=Math.floor(rnd_num(0,8)),det=Math.floor(rnd_num(5,25)),freq=Math.floor(rnd_num(4,28)),light=Math.floor(rnd_num(5,19)),scaler=Math.floor(rnd_num(5,240)),L=.01*Math.floor(rnd_num(10,70)),L2=.01*Math.floor(rnd_num(10,70)),grayscale=Math.floor(rnd_num(0,89));grayscale=1==grayscale?"gray":"full";var rn=[],rn2=[],rn3=[],rn4=[];for(i=0;i<50;i++)rn.push(Math.floor(rnd_num(0,255))/scaler),rn2.push(Math.floor(rnd_num(0,255))/scaler),rn3.push(Math.floor(rnd_num(0,255))/scaler),rn4.push(Math.floor(rnd_num(0,255))/scaler);function rnd_dec(){return seed^=seed<<13,seed^=seed>>17,((seed^=seed<<5)<0?1+~seed:seed)%1e3/1e3}function rnd_num(n,e){return n+(e-n)*rnd_dec()}window.onload=function(){var n=window.innerHeight;window.innerWidth<window.innerHeight&&(n=window.innerWidth);var e=document.createElement("canvas");e.id="canvas",e.width=n,e.height=n,document.body.appendChild(e);var o=document.getElementById("canvas");paper.setup(o);var r=new paper.Color(R/255,G/255,B/255),t=new paper.Color(R2/255,G2/255,B2/255);r.lightness=L,t.lightness=L2,t.saturation=1,"gray"===grayscale&&(t.saturation=0,r.saturation=0);var s=new paper.Rectangle(new paper.Point(0,0),n),a=new paper.Path.Rectangle(s);a.bounds.width;a.position=paper.view.center;var d=new paper.Path.RegularPolygon(a.position,det,a.bounds.width/3.5);d.position.x=a.bounds.center.x-d.bounds.width/2.02,d.position.y=a.bounds.center.y-d.bounds.height/3;var h=d.bounds;for(i=0;i<d.segments.length;i++)d.segments[i].point.y+=rn[i]*h.width/freq-h.width/(freq/4),d.segments[i].point.x+=rn2[i]*h.width/freq-h.width/(freq/2),d.bounds=h;d.fillColor={gradient:{stops:[[t],[r],[r],[t],[r],[r],[t],[r],[r]]},origin:[paper.view.center.x-n/(light/10),paper.view.center.y],destination:paper.view.center};var l=d.clone();l.scale(-1,1),l.position.x=a.bounds.center.x+l.bounds.width/2.02;var u=new paper.Path.RegularPolygon(a.position,det,a.bounds.width/5),p=u.bounds;for(i=0;i<u.segments.length;i++)u.segments[i].point.y+=rn3[i]*p.width/freq-p.width/(freq/4),u.segments[i].point.x+=rn4[i]*p.width/freq-p.width/(freq/2),u.bounds=p;u.position.x=a.bounds.center.x-u.bounds.width/2.02,u.position.y=a.bounds.center.y+u.bounds.height/2.45;var c=u.clone();u.scale(-1,1),c.position.x=a.bounds.center.x+c.bounds.width/2.02,c.fillColor=l.fillColor,u.fillColor=d.fillColor,1===smooth||(c.smooth(),d.smooth(),u.smooth(),l.smooth());var w=new paper.Group([d,l,u,c]);w.bounds=a.bounds,w.scale(.8),paper.view.onFrame=function(n){c.skew(0,.09*Math.sin(.04*n.count)),l.skew(0,.09*Math.sin(.04*n.count)),u.skew(0,.09*Math.sin(-.04*n.count)),d.skew(0,.09*Math.sin(-.04*n.count))}};