0xedd5…83a4

All memos sent from and to 0xedd5…83a4.

let dot=0;function sfc32(r,t,n,e){return function(){var p=((r|=0)+(t|=0)|0)+(e|=0)|0;return e=e+1|0,r=t^t>>>9,t=(n|=0)+(n<<3)|0,n=(n=n<<21|n>>>11)+p|0,(p>>>0)/4294967296}}let prng=new sfc32(parseInt(tokenData.hash.substr(2,8),16),parseInt(tokenData.hash.substr(10,8),16),parseInt(tokenData.hash.substr(18,8),16),parseInt(tokenData.hash.substr(27,8),16));function rI(r,t){return parseInt(t*r())}function rgbC(r){return"rgb("+r[0]+","+r[1]+","+r[2]+")"}function rgbCB(r,t,n,e){return"rgb("+parseInt(r[0]*n+t[0]*e)+","+parseInt(r[1]*n+t[1]*e)+","+parseInt(r[2]*n+t[2]*e)+")"}let pal=[[238,180,19],[40,88,164],[198,82,21],[99,12,23]],s_R=1/650,p=genParams();function genParams(){let r=pal,t=JSON.parse(JSON.stringify(r)),n=r.splice(rI(prng,4),1)[0],e=r.splice(rI(prng,3),1)[0],p=r.splice(rI(prng,2),1)[0],o=r.splice(rI(prng,1),1)[0],s=t.splice(rI(prng,4),1)[0],a=t.splice(rI(prng,3),1)[0],i=t.splice(rI(prng,2),1)[0],g=t.splice(rI(prng,1),1)[0],u=2*(1+rI(prng,4));return 6==u&&(u=1),{f_S:rI(prng,6),f_O:0!=rI(prng,6),h_G:0==rI(prng,2),q_S:u,o_A:rI(prng,8)+2,o_B:rI(prng,8)+2,o_C:rI(prng,8)+2,bg_CA:rgbC(p),su_CA:rgbC(n),al_CA:rgbC(e),fg_CA:rgbC(o),st_SA:rI(prng,3)+3,st_DA:rI(prng,2),bg_CB:rgbC(i),su_CB:rgbC(s),al_CB:rgbC(a),fg_CB:rgbC(g),st_SB:rI(prng,7)+3,st_DB:rI(prng,2)}}let ONE_K=1e3;function setup(){let r=Math.min(window.innerWidth,window.innerHeight);createCanvas(r,r),r=Math.max(r,ONE_K),pg=createGraphics(r,r),noLoop()}let globalDrawPass=0;function draw(){pg.background(255),colorMode(HSB,100);let r=1e3,t=Math.min(window.innerWidth,window.innerHeight);t=Math.max(t,ONE_K),t*=1-.07;let n=t/r,e=.035*t;for(let t=globalDrawPass;t<3;t=globalDrawPass){globalDrawPass>0&&(p.q_S=1);let t=r/p.q_S;for(let o=0;o<p.q_S;o++)for(let s=0;s<p.q_S;s++){p.st_SA=rI(prng,3)+3,p.st_SB=rI(prng,8)+3,p.st_DA=rI(prng,2),p.st_DB=rI(prng,2),p.f_S=rI(prng,6);let a=parseInt(p.st_SA*s_R*r),i=a+parseInt(p.st_DA*s_R*r),g=parseInt(p.st_SB*s_R*r),u=g+parseInt(p.st_DB*s_R*r),_=o*t;for(let o=_;o<=_+t;o++){let _=s*t;for(let s=_;s<=_+t;s++){if(0==globalDrawPass&&(wC(s,o,r)||wF(s,o,r)))continue;if(1==globalDrawPass&&!wC(s,o,r))continue;if(2==globalDrawPass&&(!wF(s,o,r)||wC(s,o,r)))continue;if(wSA(s,r)){if(o%i||s%i)continue;pg.strokeWeight(Math.trunc(n*a))}else{if(o%u||s%u)continue;pg.strokeWeight(Math.trunc(n*g))}let t=sC(s,o,r);if(p.h_G){let n=500,e=r*hDL,p=1-Math.sqrt(Math.pow(s-n,2)+Math.pow(o-e,2))/r;p=(p+2)/3,t=color(hue(t)*p,saturation(t),brightness(t))}pg.stroke(t);let _=of(s,o,r)*n;_+=e,pg.point(Math.trunc(n*s)+_,Math.trunc(n*o)+_),dot++}}}globalDrawPass++}t=Math.min(window.innerWidth,window.innerHeight),pg.width=t,pg.height=t,image(pg,0,0)}function ofMod(r,t){const n=p.f_S;return 0==n?r^t:1==n?(r^t)<<r^t:2==n?r>>t<<(t>>r):3==n?(r^t)<<t:4==n?r^t%r:5==n?r>>t%r:void 0}function of(r,t,n){const e=2*(wSA(r,t,n)?p.st_SA:p.st_SB);if(wC(r,t,n)){return ofMod(r,t)%e==0&&p.f_O?p.o_A:p.o_C}if(wF(r,t,n)){return ofMod(t,r)%e==0&&p.f_O?p.o_C:p.o_B}if(wSB(r,t,n)){return ofMod(t,r)%e==0&&p.f_O?p.o_C:p.o_A}if(wGB(r,t,n)){return ofMod(r,r)%e==0&&p.f_O?p.o_A:p.o_B}return 0}function sC(r,t,n){return wC(r,t,n)?wSA(r,n)?p.su_CA:p.su_CB:wF(r,t,n)?wSA(r,n)?p.al_CA:p.al_CB:wS(r,t,n)||wM(r,t,n)?wSA(r,n)?p.fg_CA:p.fg_CB:wSB(r,t,n)?wSA(r,n)?p.bg_CA:p.bg_CB:wGB(r,t,n)?wSA(r,n)?p.fg_CA:p.fg_CB:255}let hDL=13/16;function sBSDL(r){return r/2}function wSA(r,t){return r<=sBSDL(t)}function hL(r,t){return hDL*t}function sT(r,t){return t/2}function wC(r,t,n){return wPS(r,t,n,[[[.45,1.05],[.43,.98],[.42,.9],[.42,.86],[.45,.82],[.5,.8],[.55,.82],[.58,.87],[.58,.9],[.57,.99],[.55,1.05]],[[.4464,.9487],[.3946,.9315],[.3422,.9073],[.323,.8382],[.3562,.7673],[.4095,.7732],[.4335,.8016]],[[.5651,.9475],[.5617,.8796],[.6289,.8105],[.7067,.8046],[.7288,.9162],[.6721,.9682]],[[.6313,.8365],[.5919,.7744],[.6073,.7124],[.6443,.6799],[.6947,.6805],[.7043,.7248],[.6831,.7732],[.6707,.84]],[[.3399,.8678],[.3087,.8837],[.265,.8631],[.2232,.8087],[.2266,.7189],[.2904,.6888],[.3322,.7437],[.3337,.801],[.3385,.8412]],[[.3927,.7803],[.3826,.723],[.4114,.6421],[.4839,.6243],[.5065,.7053],[.4777,.7626],[.4273,.8075]],[[.4114,.6917],[.3663,.674],[.3466,.6238],[.3543,.5576],[.4042,.5269],[.4393,.5783],[.4311,.6226],[.4287,.6805]],[[.7096,.8572],[.748,.8023],[.7921,.7745],[.832,.8259],[.8219,.8797],[.7883,.9063],[.7048,.8868]],[[.6841,.7082],[.688,.6509],[.712,.606],[.7595,.606],[.7811,.6539],[.7763,.7183],[.6899,.726]],[[.6179,.7212],[.5641,.6976],[.5506,.6184],[.5795,.5753],[.6399,.5972],[.6361,.6639],[.6347,.7307]]])}function wF(r,t,n){return wPS(r,t,n,[[[.2434,.8223],[.204,.8306],[.1906,.8046],[.1906,.7868],[.2247,.7868],[.252,.8046]],[[.2391,.7555],[.2175,.7597],[.2002,.7597],[.1911,.7366],[.1887,.7142],[.2098,.7035],[.2448,.7449]],[[.2578,.7242],[.2424,.7006],[.2424,.6639],[.2583,.6533],[.276,.6716],[.2722,.7218]],[[.3082,.7225],[.3178,.6977],[.3351,.6788],[.3543,.6965],[.3375,.7172],[.3145,.7361]],[[.5017,.7006],[.5194,.6746],[.5367,.6805],[.5401,.713],[.5218,.7289],[.4921,.7277]],[[.4791,.6563],[.4738,.6184],[.4738,.6007],[.5002,.5753],[.5103,.596],[.5055,.6303],[.4897,.6509]],[[.3625,.5948],[.3351,.5918],[.313,.5741],[.313,.5529],[.3265,.5399],[.3663,.5771]],[[.4023,.553],[.385,.5086],[.385,.4909],[.4119,.4761],[.4263,.5104],[.4177,.563]],[[.4378,.5889],[.4527,.5653],[.4681,.5741],[.4647,.6037],[.4335,.6066]],[[.5751,.6214],[.5434,.5972],[.5473,.5653],[.5655,.5446],[.5823,.5676],[.5823,.6226]],[[.6179,.6079],[.6193,.5659],[.6361,.5429],[.6591,.5488],[.6635,.5837],[.6299,.6191]],[[.7235,.6327],[.7024,.6109],[.6976,.5766],[.7168,.5488],[.7288,.563],[.7369,.6475]],[[.7691,.6534],[.7816,.6138],[.8075,.6168],[.8137,.6434],[.8065,.6634],[.7657,.6652]],[[.7921,.7951],[.7739,.7632],[.784,.7396],[.8027,.7319],[.8171,.7585],[.8123,.7862],[.7984,.8176]],[[.8296,.84],[.8507,.8146],[.8728,.8365],[.8689,.8755],[.8483,.8826],[.8185,.8601]]])}function wP(r,t,n,e){let p=!1;for(let o=0,s=e.length-1;o<e.length;s=o++){const a=e[o][0]*n,i=e[o][1]*n*hDL,g=e[s][0]*n,u=e[s][1]*n*hDL;i>t!=u>t&&r<(g-a)*(t-i)/(u-i)+a&&(p=!p)}return p}function wPS(r,t,n,e){for(let p=0;p<e.length;p++)if(wP(r,t,n,e[p]))return!0;return!1}function wGB(r,t,n){return t>hL(r,n)}function wSB(r,t,n){return t<=hL(r,n)}function wS(r,t,n){let e=.1*n,o=n-e-.7*n;p.m_L&&(o=n-o);let s=r-o,a=t-(e+.1*n);return s*s+a*a<=e*e}function wM(r,t,n){let e=.1*n,o=n-e-.12*n;p.m_L&&(o=n-o);let s=r-o,a=t-(e+.1*n),i=s*s+a*a<=e*e,g=n-e-.17*n;p.m_L&&(g=n-g);let u=r-g,_=t-(e+.08*n),l=u*u+_*_<=e*e;return i&&(p.mo_F||!l)}function mouseClicked(){alert(`${dot} points, how pointedly dense.`)}
let dot=0;function sfc32(r,t,n,e){return function(){var p=((r|=0)+(t|=0)|0)+(e|=0)|0;return e=e+1|0,r=t^t>>>9,t=(n|=0)+(n<<3)|0,n=(n=n<<21|n>>>11)+p|0,(p>>>0)/4294967296}}let prng=new sfc32(parseInt(tokenData.hash.substr(2,8),16),parseInt(tokenData.hash.substr(10,8),16),parseInt(tokenData.hash.substr(18,8),16),parseInt(tokenData.hash.substr(27,8),16));function rI(r,t){return parseInt(t*r())}function rgbC(r){return"rgb("+r[0]+","+r[1]+","+r[2]+")"}function rgbCB(r,t,n,e){return"rgb("+parseInt(r[0]*n+t[0]*e)+","+parseInt(r[1]*n+t[1]*e)+","+parseInt(r[2]*n+t[2]*e)+")"}let pal=[[238,180,19],[40,88,164],[198,82,21],[99,12,23]],s_R=1/650,p=genParams();function genParams(){let r=pal,t=JSON.parse(JSON.stringify(r)),n=r.splice(rI(prng,4),1)[0],e=r.splice(rI(prng,3),1)[0],p=r.splice(rI(prng,2),1)[0],o=r.splice(rI(prng,1),1)[0],s=t.splice(rI(prng,4),1)[0],i=t.splice(rI(prng,3),1)[0],a=t.splice(rI(prng,2),1)[0],g=t.splice(rI(prng,1),1)[0],u=2*(1+rI(prng,4));return 6==u&&(u=1),{f_S:rI(prng,6),f_O:0!=rI(prng,6),h_G:0==rI(prng,2),q_S:u,o_A:rI(prng,7)+2,o_B:rI(prng,7)+2,o_C:rI(prng,7)+2,bg_CA:rgbC(p),su_CA:rgbC(n),al_CA:rgbC(e),fg_CA:rgbC(o),st_SA:rI(prng,3)+3,st_DA:rI(prng,2),bg_CB:rgbC(a),su_CB:rgbC(s),al_CB:rgbC(i),fg_CB:rgbC(g),st_SB:rI(prng,7)+3,st_DB:rI(prng,2)}}let FOUR_K=4e3;function setup(){let r=Math.min(window.innerWidth,window.innerHeight);createCanvas(r,r),r=Math.max(r,FOUR_K),pg=createGraphics(r,r),noLoop()}let globalDrawPass=0;function draw(){pg.background(255),colorMode(HSB,100);let r=1e3,t=Math.min(window.innerWidth,window.innerHeight);t=Math.max(t,FOUR_K),t*=1-.07;let n=t/r,e=.035*t;for(let t=globalDrawPass;t<3;t=globalDrawPass){globalDrawPass>0&&(p.q_S=1);let t=r/p.q_S;for(let o=0;o<p.q_S;o++)for(let s=0;s<p.q_S;s++){p.st_SA=rI(prng,3)+3,p.st_SB=rI(prng,8)+3,p.st_DA=rI(prng,2),p.st_DB=rI(prng,2),p.f_S=rI(prng,6);let i=parseInt(p.st_SA*s_R*r),a=i+parseInt(p.st_DA*s_R*r),g=parseInt(p.st_SB*s_R*r),u=g+parseInt(p.st_DB*s_R*r),_=o*t;for(let o=_;o<=_+t;o++){let _=s*t;for(let s=_;s<=_+t;s++){if(0==globalDrawPass&&(wC(s,o,r)||wF(s,o,r)))continue;if(1==globalDrawPass&&!wC(s,o,r))continue;if(2==globalDrawPass&&(!wF(s,o,r)||wC(s,o,r)))continue;if(wSA(s,r)){if(o%a||s%a)continue;pg.strokeWeight(Math.trunc(n*i))}else{if(o%u||s%u)continue;pg.strokeWeight(Math.trunc(n*g))}let t=sC(s,o,r);if(p.h_G){let n=500,e=r*hDL,p=1-Math.sqrt(Math.pow(s-n,2)+Math.pow(o-e,2))/r;p=(p+2)/3,t=color(hue(t)*p,saturation(t),brightness(t))}pg.stroke(t);let _=of(s,o,r)*n;_+=e,pg.point(Math.trunc(n*s)+_,Math.trunc(n*o)+_),dot++}}}globalDrawPass++}t=Math.min(window.innerWidth,window.innerHeight),pg.width=t,pg.height=t,image(pg,0,0)}function ofMod(r,t){const n=p.f_S;return 0==n?r^t:1==n?(r^t)<<r^t:2==n?r>>t<<(t>>r):3==n?(r^t)<<t:4==n?r^t%r:5==n?r>>t%r:void 0}function of(r,t,n){const e=2*(wSA(r,t,n)?p.st_SA:p.st_SB);if(wC(r,t,n)){return ofMod(r,t)%e==0&&p.f_O?p.o_A:p.o_C}if(wF(r,t,n)){return ofMod(t,r)%e==0&&p.f_O?p.o_C:p.o_B}if(wSB(r,t,n)){return ofMod(t,r)%e==0&&p.f_O?p.o_C:p.o_A}if(wGB(r,t,n)){return ofMod(r,r)%e==0&&p.f_O?p.o_A:p.o_B}return 0}function sC(r,t,n){return wC(r,t,n)?wSA(r,n)?p.su_CA:p.su_CB:wF(r,t,n)?wSA(r,n)?p.al_CA:p.al_CB:wS(r,t,n)||wM(r,t,n)?wSA(r,n)?p.fg_CA:p.fg_CB:wSB(r,t,n)?wSA(r,n)?p.bg_CA:p.bg_CB:wGB(r,t,n)?wSA(r,n)?p.fg_CA:p.fg_CB:255}let hDL=13/16;function sBSDL(r){return r/2}function wSA(r,t){return r<=sBSDL(t)}function hL(r,t){return hDL*t}function sT(r,t){return t/2}function wC(r,t,n){return wPS(r,t,n,[[[.45,1.05],[.43,.98],[.42,.9],[.42,.86],[.45,.82],[.5,.8],[.55,.82],[.58,.87],[.58,.9],[.57,.99],[.55,1.05]],[[.4464,.9487],[.3946,.9315],[.3422,.9073],[.323,.8382],[.3562,.7673],[.4095,.7732],[.4335,.8016]],[[.5651,.9475],[.5617,.8796],[.6289,.8105],[.7067,.8046],[.7288,.9162],[.6721,.9682]],[[.6313,.8365],[.5919,.7744],[.6073,.7124],[.6443,.6799],[.6947,.6805],[.7043,.7248],[.6831,.7732],[.6707,.84]],[[.3399,.8678],[.3087,.8837],[.265,.8631],[.2232,.8087],[.2266,.7189],[.2904,.6888],[.3322,.7437],[.3337,.801],[.3385,.8412]],[[.3927,.7803],[.3826,.723],[.4114,.6421],[.4839,.6243],[.5065,.7053],[.4777,.7626],[.4273,.8075]],[[.4114,.6917],[.3663,.674],[.3466,.6238],[.3543,.5576],[.4042,.5269],[.4393,.5783],[.4311,.6226],[.4287,.6805]],[[.7096,.8572],[.748,.8023],[.7921,.7745],[.832,.8259],[.8219,.8797],[.7883,.9063],[.7048,.8868]],[[.6841,.7082],[.688,.6509],[.712,.606],[.7595,.606],[.7811,.6539],[.7763,.7183],[.6899,.726]],[[.6179,.7212],[.5641,.6976],[.5506,.6184],[.5795,.5753],[.6399,.5972],[.6361,.6639],[.6347,.7307]]])}function wF(r,t,n){return wPS(r,t,n,[[[.2434,.8223],[.204,.8306],[.1906,.8046],[.1906,.7868],[.2247,.7868],[.252,.8046]],[[.2391,.7555],[.2175,.7597],[.2002,.7597],[.1911,.7366],[.1887,.7142],[.2098,.7035],[.2448,.7449]],[[.2578,.7242],[.2424,.7006],[.2424,.6639],[.2583,.6533],[.276,.6716],[.2722,.7218]],[[.3082,.7225],[.3178,.6977],[.3351,.6788],[.3543,.6965],[.3375,.7172],[.3145,.7361]],[[.5017,.7006],[.5194,.6746],[.5367,.6805],[.5401,.713],[.5218,.7289],[.4921,.7277]],[[.4791,.6563],[.4738,.6184],[.4738,.6007],[.5002,.5753],[.5103,.596],[.5055,.6303],[.4897,.6509]],[[.3625,.5948],[.3351,.5918],[.313,.5741],[.313,.5529],[.3265,.5399],[.3663,.5771]],[[.4023,.553],[.385,.5086],[.385,.4909],[.4119,.4761],[.4263,.5104],[.4177,.563]],[[.4378,.5889],[.4527,.5653],[.4681,.5741],[.4647,.6037],[.4335,.6066]],[[.5751,.6214],[.5434,.5972],[.5473,.5653],[.5655,.5446],[.5823,.5676],[.5823,.6226]],[[.6179,.6079],[.6193,.5659],[.6361,.5429],[.6591,.5488],[.6635,.5837],[.6299,.6191]],[[.7235,.6327],[.7024,.6109],[.6976,.5766],[.7168,.5488],[.7288,.563],[.7369,.6475]],[[.7691,.6534],[.7816,.6138],[.8075,.6168],[.8137,.6434],[.8065,.6634],[.7657,.6652]],[[.7921,.7951],[.7739,.7632],[.784,.7396],[.8027,.7319],[.8171,.7585],[.8123,.7862],[.7984,.8176]],[[.8296,.84],[.8507,.8146],[.8728,.8365],[.8689,.8755],[.8483,.8826],[.8185,.8601]]])}function wP(r,t,n,e){let p=!1;for(let o=0,s=e.length-1;o<e.length;s=o++){const i=e[o][0]*n,a=e[o][1]*n*hDL,g=e[s][0]*n,u=e[s][1]*n*hDL;a>t!=u>t&&r<(g-i)*(t-a)/(u-a)+i&&(p=!p)}return p}function wPS(r,t,n,e){for(let p=0;p<e.length;p++)if(wP(r,t,n,e[p]))return!0;return!1}function wGB(r,t,n){return t>hL(r,n)}function wSB(r,t,n){return t<=hL(r,n)}function wS(r,t,n){let e=.1*n,o=n-e-.7*n;p.m_L&&(o=n-o);let s=r-o,i=t-(e+.1*n);return s*s+i*i<=e*e}function wM(r,t,n){let e=.1*n,o=n-e-.12*n;p.m_L&&(o=n-o);let s=r-o,i=t-(e+.1*n),a=s*s+i*i<=e*e,g=n-e-.17*n;p.m_L&&(g=n-g);let u=r-g,_=t-(e+.08*n),l=u*u+_*_<=e*e;return a&&(p.mo_F||!l)}function mouseClicked(){alert(`${dot} points, how pointedly dense.`)}
Opuntia is the genus of plants commonly known as the "prickly pear" cactus and is a common fixture in the fauna of the Sonoran desert. This project continues in the spirit of Patchwork Saguaros in depicting the desert plants that are representative of Southwest Arizona where I grew up. Optunia explores the output variety in a short form generative series that can be achieved just through the play of generative textures created by layering and glitching stippled dots, all depicting the same subject matter. Each of the 18 tokens in the Opuntia series share the same palette and the same composition, varying solely in their use of texture and arrangement of color.
Opuntia is the genus of plants commonly known as the "prickly pear" cactus and is a common fixture in the fauna of the Sonoran desert. This project continues in the spirit of Patchwork Saguaros in depicting the desert plants that are representative of Southwest Arizona where I grew up. Optunia explores the output variety in a short form generative series that can be achieved just through the play of generative textures created by layering and glitching stippled dots, all depicting the same subject matter Each of the 18 tokens in the Opuntia series share the same palette and the same composition varying just in texture and arrangement of color.
class Random{constructor(){this.useA=!1;let e=function(e){let o=parseInt(e.substring(0,8),16),t=parseInt(e.substring(8,16),16),g=parseInt(e.substring(16,24),16),n=parseInt(e.substring(24,32),16);return function(){g|=0;let e=((o|=0)+(t|=0)|0)+(n|=0)|0;return n=n+1|0,o=t^t>>>9,t=g+(g<<3)|0,g=(g=g<<21|g>>>11)+e|0,(e>>>0)/4294967296}};this.prngA=new e(tokenData.hash.substring(2,34)),this.prngB=new e(tokenData.hash.substring(34,66));for(let o=0;o<1e6;o+=2)this.prngA(),this.prngB()}random_dec(){return this.useA=!this.useA,this.useA?this.prngA():this.prngB()}random_num(e,o){return e+(o-e)*this.random_dec()}random_int(e,o){return Math.floor(this.random_num(e,o+1))}random_bool(e){return this.random_dec()<e}random_choice(e){return e[this.random_int(0,e.length-1)]}}let R=new Random,canvasWidth=1800,canvasHeight=2700,borderOffset=72,palette1=[hexToRgb("#505050"),hexToRgb("#363636"),hexToRgb("#292929"),hexToRgb("#0A0A0A"),hexToRgb("#282828"),hexToRgb("#9DA2AB"),hexToRgb("#E7E5DF"),hexToRgb("#DDE2C6")],palette2=[[hexToRgb("#D0DB97"),hexToRgb("#69B578"),hexToRgb("#3A7D44"),hexToRgb("#181D27"),hexToRgb("#254D32")],[hexToRgb("#D65A31"),hexToRgb("#393E46"),hexToRgb("#E2C2C6"),hexToRgb("#222831"),hexToRgb("#AFA98D")],[hexToRgb("#A3B4A2"),hexToRgb("#EEF7FB"),hexToRgb("#CDC6AE"),hexToRgb("#152728"),hexToRgb("#99CEEB")],[hexToRgb("#F4F4F4"),hexToRgb("#F0A500"),hexToRgb("#CF7500"),hexToRgb("#1A1C20"),hexToRgb("#666666")],[hexToRgb("#856084"),hexToRgb("#d8cbc7"),hexToRgb("#f55d3e"),hexToRgb("#161925"),hexToRgb("#077187")],[hexToRgb("#d8e2dc"),hexToRgb("#ffffff"),hexToRgb("#546A7B"),hexToRgb("#050B10"),hexToRgb("#F57266")],[hexToRgb("#F46036"),hexToRgb("#D8C8E5"),hexToRgb("#414770"),hexToRgb("#120D1C"),hexToRgb("#5B85AA")],[hexToRgb("#F2F7F2"),hexToRgb("#D6D6D6"),hexToRgb("#087E8B"),hexToRgb("#000000"),hexToRgb("#AC7B84")],[hexToRgb("#E1A3AD"),hexToRgb("#FBFEF9"),hexToRgb("#ED7B84"),hexToRgb("#000000"),hexToRgb("#A6BEC9")],[hexToRgb("#505050"),hexToRgb("#363636"),hexToRgb("#292929"),hexToRgb("#080808"),hexToRgb("#282828")],[hexToRgb("#E8DDCB"),hexToRgb("#036564"),hexToRgb("#033649"),hexToRgb("#021027"),hexToRgb("#CDB380")],[hexToRgb("#99B2B7"),hexToRgb("#948C75"),hexToRgb("#D5DED9"),hexToRgb("#251F18"),hexToRgb("#D9CEB2")],[hexToRgb("#FFB6B9"),hexToRgb("#F68787"),hexToRgb("#FCF6BD"),hexToRgb("#162C3B"),hexToRgb("#D67373")],[hexToRgb("#FFEBA1"),hexToRgb("#FFC857"),hexToRgb("#DB3A34"),hexToRgb("#071013"),hexToRgb("#08415C")],[hexToRgb("#EF7B6C"),hexToRgb("#F4F1BB"),hexToRgb("#9BC1BC"),hexToRgb("#1E1C22"),hexToRgb("#E6EBE0")],[hexToRgb("#CAD2C5"),hexToRgb("#52796F"),hexToRgb("#354F52"),hexToRgb("#182025"),hexToRgb("#84A98C")],[hexToRgb("#F5E0E7"),hexToRgb("#F55D3E"),hexToRgb("#D8CBC7"),hexToRgb("#161925"),hexToRgb("#077187")],[hexToRgb("#6B9AC4"),hexToRgb("#F4B942"),hexToRgb("#EFF2F1"),hexToRgb("#161F3C"),hexToRgb("#97D8C4")],[hexToRgb("#C2948A"),hexToRgb("#F6F0ED"),hexToRgb("#7EA8BE"),hexToRgb("#11232D"),hexToRgb("#BBB193")],[hexToRgb("#E1E3DE"),hexToRgb("#9BC4BC"),hexToRgb("#D3FFE9"),hexToRgb("#090909"),hexToRgb("#8DDBE0")],[hexToRgb("#FF571F"),hexToRgb("#FAAA8D"),hexToRgb("#FEEFDD"),hexToRgb("#201E1F"),hexToRgb("#50B2C0")],[hexToRgb("#4B3F72"),hexToRgb("#FFC857"),hexToRgb("#119DA4"),hexToRgb("#0C0E1D"),hexToRgb("#99D6EB")],[hexToRgb("#F04848"),hexToRgb("#FDBD28"),hexToRgb("#F7E092"),hexToRgb("#14142A"),hexToRgb("#37AD86")],[hexToRgb("#F1F7ED"),hexToRgb("#91C7B1"),hexToRgb("#B33951"),hexToRgb("#372F31"),hexToRgb("#E3D081")],[hexToRgb("#A3C4BC"),hexToRgb("#BFD7B5"),hexToRgb("#E7EFC5"),hexToRgb("#2D293D"),hexToRgb("#F2DDA4")],[hexToRgb("#D36135"),hexToRgb("#7FB069"),hexToRgb("#ECE4B7"),hexToRgb("#02020B"),hexToRgb("#E6AA68")],],noiseScale=.003,gridOptions=[2,3,4,5],gridCount=R.random_choice(gridOptions),angles=[30,45,60,-30,-45,-60],randomAngle=R.random_choice(angles),selectedPalette=R.random_choice(palette2),numberOfTrees=R.random_int(3,6),sunColorChance=R.random_dec(),bgStrokeIndex=R.random_int(0,palette1.length-1),waveScale=.005,numLdiv=R.random_num(5,10),sunX=R.random_num(180,1620),sunY=R.random_num(270,810),sunD=R.random_num(150,500);function setup(){noiseSeed(parseInt(tokenData.hash.substring(2,10),16)),createCanvas(canvasWidth,canvasHeight),pixelDensity(1),noLoop()}function draw(){background(palette1[bgStrokeIndex][0],palette1[bgStrokeIndex][1],palette1[bgStrokeIndex][2],palette1[bgStrokeIndex][3],palette1[bgStrokeIndex][4],palette1[bgStrokeIndex][6]),loadPixels();for(let e=borderOffset;e<height-borderOffset;e++)for(let o=borderOffset;o<width-borderOffset;o++){let t=noise(o*noiseScale+sin(3*e*waveScale),e*noiseScale+sin(o*waveScale)),g=.5*noise(o*noiseScale*.5+sin(e*waveScale),e*noiseScale*.5+sin(o*waveScale)),n=floor(map(t+g,0,2,0,palette1.length)),b=palette1[n=constrain(n,0,palette1.length-1)];set(o,e,color(b[0],b[1],b[2]))}updatePixels(),filter(BLUR,1),drawHatchingPattern(0,0,width,height),drawSun(sunX,sunY,sunD),push(),translate(width/2,height);let r;do r=R.random_int(0,palette1.length-1);while(3===r);for(let h=0;h<numberOfTrees;h++)drawTree(R.random_num(-540,540),R.random_num(270,360),R.random_num(270,540),PI,R.random_num(27,45),r),drawTree(R.random_num(-540,540),R.random_num(270,360),R.random_num(540,810),PI,R.random_num(27,45),r);pop();let x=(width-2*borderOffset)/gridCount,$=(height-2*borderOffset)/gridCount,T=gridCount-1,_=[...Array(gridCount)].map(()=>Array(gridCount).fill(!1));for(let a=0;a<T;a++){let d=R.random_int(0,gridCount-1),l=R.random_int(0,gridCount-1);if(_[d][l]){a--;continue}loadPixels();for(let s=l*$;s<(l+1)*$;s++)for(let i=d*x;i<(d+1)*x;i++){let u=i+borderOffset,f=s+borderOffset,F=get(u,f),m=getNearestColorIndex(F,palette1);if(m>=0&&m<selectedPalette.length){let C=selectedPalette[m];set(u,f,color(C[0],C[1],C[2]))}}updatePixels(),_[d][l]=!0}filter(BLUR,1),stroke(palette1[bgStrokeIndex][0],palette1[bgStrokeIndex][1],palette1[bgStrokeIndex][2],palette1[bgStrokeIndex][3],palette1[bgStrokeIndex][4],palette1[bgStrokeIndex][6]),strokeWeight(12-gridCount);for(let c=0;c<=gridCount;c++)line(borderOffset+c*x,borderOffset,borderOffset+c*x,height-borderOffset),line(borderOffset,borderOffset+c*$,width-borderOffset,borderOffset+c*$);noStroke(),push(),noStroke(),fill(palette1[bgStrokeIndex][0],palette1[bgStrokeIndex][1],palette1[bgStrokeIndex][2],palette1[bgStrokeIndex][3],palette1[bgStrokeIndex][4],palette1[bgStrokeIndex][6]),rect(0,canvasHeight-borderOffset,canvasWidth,borderOffset),pop()}function getNearestColorIndex(e,o){let t=1/0,g=-1;for(let n=0;n<o.length;n++){let b=euclideanDist(e,o[n]);b<t&&(t=b,g=n)}return g}function euclideanDist(e,o){let t=red(e)-o[0],g=green(e)-o[1],n=blue(e)-o[2];return sqrt(t*t+g*g+n*n)}function hexToRgb(e){let o=parseInt(e.slice(1,3),16),t=parseInt(e.slice(3,5),16),g=parseInt(e.slice(5,7),16);return[o,t,g]}function drawTree(e,o,t,g,n,b){if(t<2){let r=palette1[b];stroke(r[0],r[1],r[2]);for(let h=0;h<R.random_int(2,5);h++)line(e,o,e+R.random_num(-5,5),o+R.random_num(-5,5));return}let x=e+t*sin(g),$=o+t*cos(g);strokeWeight(n),stroke(5),line(e,o,x,$);let T=.75*n;T=constrain(T,1,40),drawTree(x,$,t*R.random_num(.6,.8),g+R.random_num(-PI/6,PI/6),T,b),drawTree(x,$,t*R.random_num(.6,.8),g+R.random_num(-PI/6,PI/6),T,b)}function drawSun(e,o,t){push();let g;fill(g=sunColorChance<.5?hexToRgb("#efc613"):sunColorChance<.9?hexToRgb("#F7F0F0"):hexToRgb("#9A031E")),noStroke(),ellipse(e,o,t),pop()}function drawHatchingPattern(e,o,t,g){push(),stroke(palette1[bgStrokeIndex][0],palette1[bgStrokeIndex][1],palette1[bgStrokeIndex][2],palette1[bgStrokeIndex][4]);let n=sqrt(t*t+g*g),b=n/numLdiv,r=randomAngle*PI/180;translate(e+t/2,o+g/2),rotate(r);for(let h=0;h<b;h++){let x=-n/2+20*h;strokeWeight(3*noise(.1*h)),line(-n/2,x,n/2,x)}pop()}function keyPressed(){("s"==key||"S"==key)&&saveCanvas("Fenestra","png")}