xxxxxxxxxx
20
var img;
var x;
function setup() {
createCanvas(600, 600, WEBGL);
}
function preload(){
img = loadImage("texture1.png");
}
function draw() {
background(200);
noStroke();
rotateY(millis() / 1000);
texture(img);
sphere(50);
}