let colors=["#8e5017","#d29c34","#a40e02","#28727f","#3b515d","#0f120c"]
let m=min(windowWidth, windowHeight)
simplex= new openSimplexNoise(Date.now())
for(let y=0; y<=height+lineHeight; y+=lineHeight){
let mainW= map(simplex.noise2D(y/100+(time*3), time), -1, 1, width*0.05, width*0.5)
let leftover= (width-mainW)*0.5
let secondaryW=map(simplex.noise3D(y/100+(time*3), time, 3), -1, 1, 0, leftover)
let tertiaryW=leftover-secondaryW
stroke(colorMixer(mainX, y, colors))
line(mainX-half, y, mainX+half, y)
stroke(colorMixer(tertiaryW*0.5, y, colors))
stroke(colorMixer(width-tertiaryW*0.5, y, colors))
line(width, y, width-tertiaryW, y)
stroke(colorMixer(leftX, y, colors))
line(left-secondaryW, y, left, y)
stroke(colorMixer(rightX, y, colors))
line(right, y, right+secondaryW, y)
function colorMixer(x, y, colorArray) {
let c = noise(x/100+time, y/150+time, time*0.25) * colorArray.length
let c2 = floor(c + 1) % colorArray.length
let color1 = colorArray[c1]
let color2 = colorArray[c2]
let coloring = color(spectral.mix(color1, color2, mix))