memoscan
← all memos

Memo 0x4106e0d6…de767a on Ethereum

(()=>{"use strict";const t=new class{constructor(){this.useA=!1;let t=function(t){let e=parseInt(t.substr(0,8),16),n=parseInt(t.substr(8,8),16),o=parseInt(t.substr(16,8),16),a=parseInt(t.substr(24,8),16);return function(){e|=0,n|=0,o|=0,a|=0;let t=(e+n|0)+a|0;return a=a+1|0,e=n^n>>>9,n=o+(o<<3)|0,o=o<<21|o>>>11,o=o+t|0,(t>>>0)/4294967296}};this.prngA=new t(tokenData.hash.substr(2,32)),this.prngB=new t(tokenData.hash.substr(34,32));for(let t=0;t<1e6;t+=2)this.prngA(),this.prngB()}random_dec(){return this.useA=!this.useA,this.useA?this.prngA():this.prngB()}};function e(){return t.random_dec()}function n(t,n){return t+e()*(n-t)}function o(t){return t[Math.floor(e()*t.length)]}function a(t){let n=0;const o=e(),a=t.reduce(((t,[e,n])=>t+n),0);return(t.map((([t,e])=>(n+=1*e/a??1,[t,e,n]))).find((([t,e,n])=>o<n))??t[t.length-1])[0]}function s(t){for(let n=t.length-1;n>0;n--){const o=Math.floor(e()*(n+1));[t[n],t[o]]=[t[o],t[n]]}return t}let r,l=!1;const i=[{name:"Canyons",getLayers:(t,e,n,o)=>{const a={td:20,tm:.02,dd:500,dm:.01},s=[],r=e([.15,.85]),l=o(.3,.7),i=l>.5?o(.3,.45):o(.55,.7),f=o(.5,.6),u=f+o(.15,.3);let m,h,d=t()<.5;const c=e([5,6,7,8]);for(let e=0;e<c;e++){null==m?(h=f-o(.4,.5),m={top:h,bottom:f}):(m.top=h+(e/(c-1))**1.75*(u-f),m.bottom=f+(e/(c-1))**1.75*(u-f));const n=l+(e/(c-1))**1.75*(i-l);d?s.push({tG:[{x:0,y:m.top},t()<r?{x:o(.33,.67)*n,y:m.top+o(0,.25)*(m.bottom-m.top)}:void 0,{x:n,y:m.bottom}].filter(Boolean),...a,lSD:-1}):s.push({tG:[{x:n,y:m.bottom},t()<r?{x:n+o(.33,.66)*(1-n),y:m.top+o(0,.25)*(m.bottom-m.top)}:void 0,{x:1,y:m.top}].filter(Boolean),...a,lSD:1}),d=!d}return s},yOffsets:[[{offset:.1,lumProb:.2},.1],[{offset:.15,lumProb:.3},.2],[{offset:.2,lumProb:.5},.4],[{offset:.3,lumProb:.7},.2],[{offset:.4,lumProb:1},.1]]},{name:"Cliffs",getLayers:(t,e,n,o)=>{const a={td:10,tm:.04,dd:200,dm:.008},s=n(.4,.05),r=s-(.05+Math.abs(n(0,.075))),l=s+Math.abs(n(0,.075)),i=l-(.05+Math.abs(n(0,.075))),f=o(.1,.9),u=Math.max(f-(.2+Math.abs(n(0,.15))),0),m=Math.min(f+(.2+Math.abs(n(0,.15))),1),h=o(.1,.9),d=Math.max(h-(.1+Math.abs(n(0,.15))),0),c=Math.min(h+(.1+Math.abs(n(0,.15))),1),g=[];g.push({x:u,y:s}),g.push({x:f,y:r}),g.push({x:m,y:s}),m<1&&g.push({x:1,y:s}),g.unshift({x:-.5,y:g[0].y});const y=[];d>0&&y.push({x:0,y:l}),y.push({x:d,y:l}),y.push({x:h,y:i}),y.push({x:c,y:l}),c<1&&y.push({x:1,y:l});const b=[{tG:g,...a,layerHeight:.5},{tG:y,...a,dm:2*a.dm,layerHeight:.5}],p=t(),x=.45,M=.05;let D;if(p<.667&&(D=.1+.7*t(),b.push({tG:[{x:0,y:n(x,M)},{x:Math.max(D-(.075+Math.abs(n(0,.05))),0),y:n(x,M)},{x:D,y:n(.75,M)}],...a,td:Math.round(2*a.td),tm:1.2*a.tm,dm:3*a.dm})),p>.333){const e=null!=D?D+.1+t()*(.9-(D+.1)):1-(.1+.5*t());b.push({tG:[{x:e,y:n(.75,M)},{x:Math.min(e+(.075+Math.abs(n(0,.05))),1),y:n(x,M)},{x:1,y:n(x,M)}],...a,td:Math.round(2*a.td),tm:1.2*a.tm,dm:3*a.dm})}return b},yOffsets:[[{offset:.05,lumProb:.2},.1],[{offset:.1,lumProb:.3},.2],[{offset:.2,lumProb:.5},.4],[{offset:.25,lumProb:.7},.2],[{offset:.35,lumProb:1},.1]]},{name:"Forests",getLayers:(t,e,n)=>{const o=[],a=e([4,5,6]),[s,r]=e({4:[[.3,.2],[.35,.175],[.4,.15]],5:[[.3,.15],[.35,.15],[.4,.12]],6:[[.2,.15],[.3,.1],[.3,.12],[.35,.12],[.4,.1]]}[a]),l={4:{td:14,tm:.07,dd:140,dm:.06},5:{td:17,tm:.06,dd:170,dm:.051},6:{td:20,tm:.05,dd:200,dm:.042}}[a];let i=e([-1,1]);for(let t=0;t<a;t++){const e=s+t*r;o.push({tG:[{x:0,y:Math.min(e+n(0,r/3),.975)},{x:1,y:Math.min(e+n(0,r/3),.975)}],lSD:i,...l}),i*=-1}return o},yOffsets:[[{offset:0,lumProb:.6},.1],[{offset:.1,lumProb:.7},.4],[{offset:.2,lumProb:.8},.2],[{offset:.3,lumProb:.9},.2],[{offset:.4,lumProb:1},.1]]},{name:"Moors",getLayers:(t,e,n,o)=>{const a={td:20,tm:.02,dd:200,dm:.002},s=.05,r=s+.3*t(),l=e([3,4]),i=[n(.4,.05)];for(let t=1;t<l;t++)i.push(i[t-1]+Math.abs(n(.05,.025)));const f=i[i.length-1],u=e([0,1,2]),m=f+(u>0?Math.abs(n(.05,.025)):0);let h,d;2===u?t()<.5?(h=m,d=m+t()*(r-s)):(h=m+t()*(r-s),d=m):1===u&&(t()<.5?h=m:d=m);const c=i.map(((t,e)=>({tG:[{x:0,y:t},{x:1,y:t}],...a,td:a.td+5*e,dm:a.dm+5e-4*e,layerHeight:r+m-t}))),g={...a,td:a.td+5*i.length,dm:a.dm+5e-4*i.length};if(null!=h){const e=()=>o(.2,.7);c.push({tG:[{x:0,y:h},{x:e(),y:m+r}],...g}),t()<.2&&c.push({tG:[{x:0,y:h+t()*(m+(r-s)-h)},{x:e(),y:m+r}],...g})}if(null!=d){const e=()=>1-o(.2,.7);c.push({tG:[{x:e(),y:m+r},{x:1,y:d}],...g}),t()<.2&&c.push({tG:[{x:e(),y:m+r},{x:1,y:d+t()*(m+(r-s)-d)}],...g})}return c},yOffsets:[[{offset:-.1,lumProb:.6},.1],[{offset:0,lumProb:.7},.2],[{offset:.1,lumProb:.8},.4],[{offset:.2,lumProb:.9},.2],[{offset:.3,lumProb:1},.1]]},{name:"Mountains",getLayers:(t,e,n,o)=>{const a={td:20,tm:.02,dd:200,dm:.005},s=(t,e)=>e?t.reverse().map((({x:t,y:e})=>({x:1-t,y:e}))):t,r=t()<.5,l=t()<.5,i=[];return i.push({tG:s([{x:0,y:.1},{x:o(.1,.2),y:o(.025,.075)},{x:o(.3,.5),y:o(.3,.5)}],r),...a,tm:.1}),i.push({tG:s([{x:0,y:.3},{x:.5,y:o(.125,.175)},{x:1,y:.3}],l),...a,tm:.05}),i.push({tG:s([{x:0,y:.35},{x:.5,y:o(.25,.35)},{x:1,y:.55}],l),...a,tm:.033}),i.push({tG:s([{x:0,y:.5},{x:.4,y:o(.55,.65)},{x:.5,y:o(.65,.75)},{x:.65,y:1}],l),...a,tm:.033}),i.push({tG:s([{x:0,y:.7},{x:o(.7,.9),y:1}],l),...a,tm:.075}),i},yOffsets:[[{offset:0,lumProb:.3},.3],[{offset:.1,lumProb:.5},.4],[{offset:.2,lumProb:.6},.2],[{offset:.3,lumProb:.9},.1]],disallowedTechniques:["Sparse","Hazy"]},{name:"Plains",getLayers:(t,e,n,o)=>{const a={td:20,tm:.04,dd:200,dm:.005},s=.1+.1*t();let r,l;for(;r=n(.5,.05),l=n(.5,.05),!(Math.abs(r-l)<s/3););const i=Math.max(r,l)+s;let f=0;const u=[];u.push({tG:[{x:0,y:r},{x:o(.35,.65),y:Math.min(r,l)-o(.1,.2)},{x:1,y:l}],...a,td:a.td+5*f,dm:a.dm+5e-4*f,layerHeight:i-Math.max(r,l)}),f++;const m=r+Math.abs(n(0,.05)),h=l+Math.abs(n(0,.05));u.push({tG:[{x:0,y:m},{x:1,y:h}],...a,td:a.td+5*f,dm:a.dm+5e-4*f,layerHeight:i-Math.max(h,h)}),f++;const d=o(.35,.65),c=r+Math.max(Math.abs(n(0,.05)),s/3);u.push({tG:[{x:0,y:c},{x:d-Math.abs(n(0,.1)),y:c+Math.abs(n(0,.025))},{x:d+(.05+Math.abs(n(0,.1))),y:i}],...a,td:a.td+5*f,dm:a.dm+5e-4*f,layerHeight:i-c});const g=r+Math.max(Math.abs(n(0,.05)),s/3);return u.push({tG:[{x:d-(.05+Math.abs(n(0,.1))),y:i},{x:d+Math.abs(n(0,.1)),y:g+Math.abs(n(0,.025))},{x:1,y:g}],...a,td:a.td+5*f,dm:a.dm+5e-4*f,layerHeight:i-g}),u},yOffsets:[[{offset:-.1,lumProb:.2},.1],[{offset:-.05,lumProb:.3},.2],[{offset:.05,lumProb:.5},.4],[{offset:.2,lumProb:.7},.2],[{offset:.3,lumProb:1},.1]],disallowedTechniques:["Hazy"]},{name:"Peaks",getLayers:(t,e,n,o)=>{const a=.75,s={td:20,tm:.06,dd:300,dm:.01};let r=0;const l=1-.9*o(.75,1),i=o(.4,.6),f=i-.05+Math.abs(n(0,.2)),u=i+.05-Math.abs(n(0,.2)),m=i-(.15+Math.abs(n(0,.2))),h=i+(.15+Math.abs(n(0,.2))),d=[],c=o(.33,.66)*f;let g,y;for(r=0;++r<50&&(g=1-o(.8,1)*(1-l),!((1-g)/((f-c)*p)<=a)););for(r=0;++r<50&&(y=l+o(.5,.75)*(1-l),!((y-g)/(c*p)<=a)););d.push({tG:[{x:0,y},{x:c,y:g},{x:f,y:1}],...s});const b=u+o(.33,.66)*(1-u);let x,M,D;for(r=0;++r<50&&(x=1-o(.8,1)*(1-l),!((1-x)/((b-u)*p)<=a)););for(r=0;++r<50&&(M=l+o(.5,.75)*(1-l),!((M-x)/((1-b)*p)<=a)););for(d.push({tG:[{x:u,y:1},{x:b,y:x},{x:1,y:M}],...s}),r=0;++r<50;){D=1-o(.25,1)*(1-l);const t=(1-D)/((i-m)*p),e=(1-D)/((h-i)*p);if(t<=1&&t>=.66&&e<=1&&e>=.66)break}return d.push({tG:[{x:m,y:1},{x:i,y:D},{x:h,y:1}],...s,td:15,tm:.1}),d},yOffsets:[[{offset:0,lumProb:.7},.5],[{offset:.08,lumProb:.8},.2],[{offset:.16,lumProb:.9},.2],[{offset:.24,lumProb:1},.1]],disallowedTechniques:["Sparse","Hazy"]},{name:"Valleys",getLayers:(t,e,n,o)=>{const a={td:20,tm:.04,dd:200,dm:.015},s=(t,e)=>e?t.reverse().map((({x:t,y:e})=>({x:1-t,y:e}))):t,r=t=>o(t-.05,t+.05),l=t()<.5,i=[];i.push({tG:s([{x:0,y:r(.3)},{x:r(.35),y:r(.4)},{x:1,y:r(.3)}],l),layerHeight:.6,...a});const f=r(.25),u=r(.3);return i.push({tG:s([{x:0,y:r(.45)},{x:f-.05,y:u},{x:f+.05,y:u},{x:r(.5),y:r(.5)}],l),...a,tm:.025,lSD:l?1:-1}),i.push({tG:s([{x:r(.225),y:r(.5)},{x:r(.7),y:r(.15)},{x:1,y:.4}],l),...a,tm:.025,lSD:l?-1:1}),i.push({tG:s([{x:0,y:r(.3)},{x:r(.275),y:r(.6)}],l),...a,tm:.025,dm:.01,lSD:l?1:-1}),i.push({tG:s([{x:r(.4),y:1},{x:1,y:r(.3)}],l),...a,td:12,tm:.05,dm:.01,lSD:l?-1:1}),i},yOffsets:[[{offset:0,lumProb:.5},.3],[{offset:.1,lumProb:.5},.4],[{offset:.2,lumProb:.6},.2],[{offset:.3,lumProb:1},.1]]}],f=[[{name:"Ilissus",c:[12,100,97],bg:[0,0,20],bgA:[.25,.75],fg:[[0,0,20]],l:[0,0,0]},.03],[{name:"Moonlight",c:[0,0,20],bg:[0,0,95],bgA:[.15,.6],fg:[[0,0,95]],l:[0,0,70]},.03],[{name:"Mower",c:[30,74,95],bg:[32,99,68],bgA:[.35,.65],fg:[[32,99,68]],l:[25,88,59]},.03],[{name:"Parapet",c:[24,90,93],bg:[250,24,37],bgA:[.25,.75],fg:[[250,24,37]],l:[250,24,24]},.03],[{name:"Channel",c:[178,37,97],bg:[185,62,40],bgA:[.25,.75],fg:[[185,62,40]],l:[185,62,20]},.03],[{name:"Rose Skirt",c:[240,63,97],bg:[297,100,75],bgA:[.25,.75],fg:[[297,100,75]],l:[297,100,35]},.03],[{name:"Red Roof",c:[0,0,96],bg:[350,40,50],bgA:[.25,.75],fg:[[350,40,50]],l:[350,87,74]},.03],[{name:"Clearing",c:[123,100,98],bg:[138,30,50],bgA:[.25,.75],fg:[[138,30,50]],l:[138,30,30]},.03],[{name:"Models",c:[348,75,97],bg:[348,97,84],bgA:[.25,.75],fg:[[348,97,84]],l:[346,88,72]},.03],[{name:"Seine",c:[0,0,97],bg:[220,30,50],bgA:[.25,.75],fg:[[220,30,50]],l:[215,22,31]},.03],[{name:"Circus",c:[32,99,68],bg:[236,100,65],bgA:[.5,.5],fg:[[236,100,65]]},.015],[{name:"Can-Can",c:[332,90,47],bg:[262,77,30],bgA:[.5,.5],fg:[[262,77,30]]},.015],[{name:"Clown",c:[347,68,46],bg:[34,98,64],bgA:[.5,.5],fg:[[34,98,64]]},.015],[{name:"Fishermen",c:[166,93,36],bg:[221,57,26],bgA:[.5,.5],fg:[[221,57,26]]},.015],[{name:"Stone Breaker",c:[30,50,97],bg:[32,99,68],bgA:[.5,1],fg:[[3,99,68],[348,86,76],[350,40,50]]},.04],[{name:"Pink Landscape",c:[344,100,96],bg:[344,100,90],bgA:[1,1],fg:[[340,100,74],[344,88,51],[346,85,36]]},.04],[{name:"Couple",c:[272,100,97],bg:[271,60,88],bgA:[.75,1],fg:[[217,51,78],[270,24,59],[357,49,64]]},.04],[{name:"Powder",c:[32,60,91],bg:[311,41,78],bgA:[.5,.5],fg:[[326,36,27],[347,44,51],[349,23,58]]},.04],[{name:"Maria",c:[36,100,91],bg:[181,36,70],bgA:[.5,1],fg:[[260,20,38],[38,88,51]]},.04],[{name:"Bathers",c:[5,99,96],bg:[2,93,86],bgA:[.5,1],fg:[[1,89,72],[12,94,73]]},.04],[{name:"Suburbs",c:[16,67,79],bg:[32,100,90],bgA:[.75,1],fg:[[185,48,45],[350,40,50]]},.04],[{name:"Bouquet",c:[47,44,89],bg:[181,36,70],bgA:[.5,1],fg:[[209,100,18],[7,74,70]]},.04],[{name:"Anchorage",c:[138,33,95],bg:[335,11,62],bgA:[.5,.5],fg:[[20,91,67],[212,30,45]