Texture to object!!!
Mon Feb 12 2024 11:21:39 GMT+0000 (Coordinated Universal Time)
Saved by
@seb_prjcts_be
let bg;
function setup() {
createCanvas(400, 400, WEBGL);
bg=createGraphics(400,400);
bg.stroke(0);
bg.strokeWeight(2.5);
for(let i=0;i<1000;i++){
bg.point(random(width),random(height));
}
}
function draw() {
background(245);
rotateX(radians(frameCount));
texture(bg);
box(100);
}
content_copyCOPY
Comments