xxxxxxxxxx
20
function setup(){
createCanvas(windowWidth, windowHeight, WEBGL);
img = loadImage("rem.jpg");
img.resize(100, 0);
}
function draw(){
background(200);
texture(img);
box(100,100);
beginShape();
vertex(0, 0, 0, 0, 0);
vertex(100, 0, 0, 1, 0);
vertex(100, 100, 0, 1, 1);
vertex(0, 100, 0, 0, 1);
endShape(CLOSE);
}