xxxxxxxxxx
37
let font;
function preload() {
font = loadFont("Inter-Medium.ttf");
}
function setup() {
createCanvas(windowWidth, windowHeight, WEBGL);
textFont(font);
textSize(100);
}
function draw() {
background(0);
let cellX = 500;
let cellY = 500;
let off = tan(frameCount*0.1)*100;
randomSeed(10);
push();
// rotateY(frameCount*0.01);
scale(sin(frameCount*0.01));
translate(-width/2, -height/2);
for(let x=-0;x<10;x++) {
for(let y=-0;y<10;y++) {
let off = x*y*1000;
let z = random(-100,100) + off;
push();
translate(x*cellX,y*cellY,z);
rotateY((frameCount + x*y)*0.01);
text("*",0,0)
pop();
}
}
pop();
}