Tap to save screenshot.
A fork of please dont look at the code its the ugliest thing ever made by Kalmarv
xxxxxxxxxx
let pops = []
let n_cir
let n_pops
function setup() {
cols = createCols("https://coolors.co/ffa69e-faf3dd-b8f2e6-aed9e0-5e6472")
createCanvas(1112, 834);
w=min(windowWidth,windowHeight)
h=min(windowWidth,windowHeight)
m=w/2
speed()
noLoop()
n_cir = 1000
n_pops = 10
colorMode(HSB)
seeed = random(10000000000000)
colorrange = 200
asdf = new iris(random(w), random(h))
}
function draw() {
randomSeed(seeed)
a = random(360)
noStroke()
asdf.show()
}
class iris {
constructor(_x, _y, _s) {
this.x = _x
this.y = _y
this.s = 200
}
show() {
push()
translate(this.x, this.y)
for (let i = 0; i < n_cir; i++) {
fill(random(a, a + colorrange > 360 ? random(360 - a + colorrange, a + colorrange - 360) : a + colorrange), random(50,100), 100, 0.1)
var j = invert(i, n_cir)
var offx = expand(noise(this.x + i)) * j * 2
var offy = expand(noise(this.y + i)) * j * 2
ellipse(offx, offy, j * n_cir / this.s)
}
pop()
}
}
// save jpg
let lapse = 0; // mouse timer
function mousePressed(){
if (millis() - lapse > 400){
save("img_" + month() + '-' + day() + '_' + hour() + '-' + minute() + '-' + second() + ".jpg");
lapse = millis();
}
}