xxxxxxxxxx
108
// color and composition generator. works great for neomodernists, metamodernists, vaporwave, and many other postpostmodernists. truly innovative color combination for the designer desperately seeking the new, and square format is perfect for quick export to social media. if u dont like what u get, try pressing mouse or re-running the code!
let ypos=20;
let code = "a,b,c...z = Math.floor (random(width/2));\nbackground(b,a,c);\nfill(a,n,d);\nellipse(w,h,a,t);\nfill(t,h,e);\nellipse(h,e,l,l);\nfill(b,a,d);\nellipse(t,h,a,t);\nfill(s,h,e);\nellipse(t,h,e,y);\nfill(e,a,t);\nellipse(y,u,c,k);\nfill(f,u,n);\nellipse(k,i,c,k);\nfill(a,n,d);\nellipse(k,i,l,l);\nfill(o,n,e);\nellipse(l,i,o,n);\nfill(b,u,t);\nellipse(n,o,p,e);\nfill(h,e,r);\nellipse(e,a,r,l);\nfill(w,a,s);\nellipse(l,a,n,e);\nfill(t,o,o);\nellipse(e,a,r,n);"
function setup() {
createCanvas(800, 400);
a=Math.floor(random(400));
b=Math.floor(random(400));
c=Math.floor(random(400));
d=Math.floor(random(400));
e=Math.floor(random(400));
f=Math.floor(random(400));
g=Math.floor(random(400));
h=Math.floor(random(400));
i=Math.floor(random(400));
j=Math.floor(random(400));
k=Math.floor(random(400));
l=Math.floor(random(400));
m=Math.floor(random(400));
n=Math.floor(random(400));
o=Math.floor(random(400));
p=Math.floor(random(400));
q=Math.floor(random(400));
r=Math.floor(random(400));
s=Math.floor(random(400));
t=Math.floor(random(400));
u=Math.floor(random(400));
v=Math.floor(random(400));
w=Math.floor(random(400));
x=Math.floor(random(400));
y=Math.floor(random(400));
z=Math.floor(random(400));
}
function draw() {
background(b,a,c);
noStroke();
rect(w,h,450+a,t);
fill(t,h,e);
rect(h,e,l,l);
rect(t,h,a,t);
fill(s,h,e);
rect(t,h,e,y);
fill(e,a,t);
rect(y,u,c,k);
fill(f,u,n);
rect(k,i,c,k);
fill(a,n,d);
rect(k,i,l,l);
fill(o,n,e);
rect(l,i,o,n);
fill(b,u,t);
rect(n,o,p,e);
fill(h,e,r);
rect(e,a,r,l);
fill(w,a,s);
rect(l,a,n,e);
fill(t,o,o);
rect(e,a,r,n);
fill(255);
rect(width/2,0,400,400);
if (mouseIsPressed){
r=r + sin(frameCount*0.1) * r;
o=o + sin(frameCount*0.1) * o;
t=t + sin(frameCount*0.1) * t;
d=d + sin(frameCount*0.1) * d;
y=y + sin(frameCount*0.1) * y;
a+=(random(-1,1));
l+=(random(-1,1));
w+=(random(-1,1));
n+=(random(-1,1));
e+=(random(-1,1));
c+=(random(-1,1));
k+=(random(-1,1));
}
fill(b,a,c);
text('background: ' + b +', '+ a + ', '+c, 10,ypos);
fill(a,n,d);
text('what: ' + a +', '+ n + ', '+d, 10,ypos*2);
fill(t,h,e);
text('hell: ' + t +', '+ h + ', '+e, 10,ypos*3);
fill(b,a,d);
text('that: ' + b +', '+ a + ', '+d, 10,ypos*4);
fill(s,h,e);
text('they: ' + s +', '+ h + ', '+e, 10,ypos*5);
fill(e,a,t);
text('yuck: ' + e +', '+ a + ', '+t, 10,ypos*6);
fill(f,u,n);
text('kick: ' + f +', '+ u + ', '+n, 10,ypos*7);
fill(a,n,d);
text('kill: ' + a +', '+ n + ', '+d, 10,ypos*8);
fill(o,n,e);
text('lion: ' + o +', '+ n + ', '+e, 10,ypos*9);
fill(b,u,t);
text('nope: ' + b +', '+ u + ', '+t, 10,ypos*10);
fill(h,e,r);
text('earl: ' + h +', '+ e + ', '+r, 10,ypos*11);
fill(w,a,s);
text('lane: ' + w +', '+ a + ', '+s, 10,ypos*12);
fill(t,o,o);
text('earn: ' + t +', '+ o + ', '+o, 10,ypos*13);
fill(25);
text(code,7*width/8-10,10,width/4-20,height);
}