xxxxxxxxxx
26
let tex;
function preload(){
tex = loadImage("data/red.png");
}
function setup() {
createCanvas(400, 400, WEBGL);
}
function draw() {
background(220);
rotateZ(frameCount * 0.01);
rotateX(frameCount * 0.01);
rotateY(frameCount * 0.01);
scale(0.01, 0.01);
texture(tex);
beginShape();
vertex(-10000, -10000);
vertex(10000, 19000);
vertex(19000, 10000);
endShape(CLOSE);
}