xxxxxxxxxx
//Inspired by the painting "Balm" by Bridget Riley
let simplex
let rowWidth=15
function preload(){
font= loadFont('FamiljenGrotesk-VariableFont_wght.ttf')
}
function setup() {
createCanvas(400, 400);
gravity= createVector(0, 0.1)
simplex= new openSimplexNoise(Date.now())
}
function draw(){
background('#f4f1de')
noStroke()
fill(196, 9, 46)
for(let x=0; x<=width; x+=rowWidth*2){
let y=60
for(let i=0; i<=30; i++){
let brightness= map(simplex.noise2D(i/3, frameCount/300), -1, 1, 80, 130)
fill(brightness)
let sizer= map(simplex.noise2D(i/3, frameCount/300), -1, 1, rowWidth/8, rowWidth*1.2)
y+=sizer*1.9
ellipse(x+rowWidth/2, y, rowWidth, sizer);
ellipse(x+rowWidth*1.5, y+sizer, rowWidth, sizer)
}
}
fill('#f4f1de')
noStroke()
rect(0, 0, width, 60)
rect(0, 0, 60, height)
rect(340, 0, 60, height)
rect(0, 340, width, 60)
noStroke()
textFont(font)
fill(100)
text('1.19', 20, 380)
}