colors: ['#996DD9','#6DD6D6','#575757','#CBCBCB'],
colors: ['#EAA388','#FF7878','#575757','#CBCBCB'],
name: "SIXTY FEET UNDER",
colors: ['#444DA0','#449FA0','#7755BB','#CBCBCB'],
colors: ['#CFAFB1','#AFBFCF','#CFC8AF','#AEAEAE'],
colors: ['#414141','#7755BB','#996DD9','#AA99C9'],
colors: ['#D12D35','#3478BC','#F8D86E','#000000'],
colors: ['#D12D35','#CFAFB1','#F8D86E','#CFC8AF'],
let width, height, chance, x1c, y1c, x1, y1, x2, y2, x2c, y2c, xp, yp, xt, yt, a, steps, t, fr, fr2, palette, colors, lines, v,sw;
let m = int(random(0,palettes.length));
palette = palettes[m].name;
colors = shuffle(palettes[m].colors);
createCanvas(width, height);
for (x = width/fr; x < width - width/fr; x++) {
for (y = height/fr; y < height - height/fr; y++) {
strokeWeight(random(0,2));
if(chance > .5) point(x, y);
fill0 = color(colors[0]);
fill2 = color(colors[2]);
fill3 = color(colors[3]);
lines = int(random(5,100));
for(let i=0;i<lines;i++){
x1c = random(width/fr2,width-width/fr2);
y1c = random(height/fr2,height-height/fr2);
x1 = random(width/fr2,width-width/fr2);
y1 = random(height-height/(fr2/2),height-height/fr2);
x2 = random(width/fr2,width);
y2 = random(height/fr2,height/(fr2/2));
x2c = random(width/fr2,width);
y2c = random(height/fr2,height);
curve(x1c,y1c,x1,y1,x2,y2,x2c,y2c);
steps = int(random(5,500));
for (let i2 = 0; i2 <= steps; i2++) {
xp = curvePoint(x1c, x1, x2, x2c, t);
yp = curvePoint(y1c, y1, y2, y2c, t);
xt = curveTangent(x1c, x1, x2, x2c, t);
yt = curveTangent(y1c, y1, y2, y2c, t);
line(xp-cos(a)*v,yp-sin(a)*v,cos(a)*v+xp,sin(a)*v+yp);