xxxxxxxxxx
let t;
let img;
function preload(){
img = loadImage("fuschlsee.jpeg")
}
function setup () {
createCanvas(3363, 2242, WEBGL)
angleMode(DEGREES);
background(255);
brush.scale(1);
brush.noField()
brush.noStroke()
t = 0
}
function draw() {
frameRate(10)
push()
let x = int(random(3363))
let y = int(random(2242))
let c = img.get(x,y)
let r = map(t,0,10000,100,5)
translate(-width/2+x,-height/2+y)
//brush.rotate(random(360))
brush.fill(c[0],c[1],c[2],50)
brush.rect(-r/2,-r/2,r,r);
pop()
if(mouseIsPressed){
save("cubistic_style.png")
}
t++
}