xxxxxxxxxx
46
var rot = 0;
var y = 0;
var z = 0;
var x = 0;
function setup() {
createCanvas(400, 400, WEBGL);
}
function draw() {
background(10, 20, 30);
lights();
// rotateX(rot);
// rotateY(rot);
// rotateZ(rot);
// rot += 0.01;
// translate(mouseX-200,mouseY-200,0); //moves it 200 to the left
// pointLight(255, 10, 230, 400, -400, 200); //pointLight(r,g,b, x, y, z)
// pointLight(5, 25, 230, -400, 400, 200);
// rotateY(mouseX/100);
// rotateX(mouseY/100);
// rotateX(0.5);
// rotateY(0.5);
// translate(x, y, z);
// box(200); //box(w, l, h)
// if(x == 0){
// }else if (y == 0){
// }else if(z == 0){
// }
// ambientLight(mouseX, mouseY,400 - mouseX);
// rotateY(rot);
// box(200);
// rot += 0.01;
text("text", 0, 0);
}