xxxxxxxxxx
49
var rotx = 0;
var roty = 0;
function setup() {
createCanvas(400, 400, WEBGL);
font = loadFont("Akronim-Regular[1].ttf");
textFont(font);
textSize(60);
textAlign(CENTER);
background(100);
}
function draw() {
fill(0);
text("OBEY THE CUBE", 0, -125);
fill(random(255), random(255), random(255));
//ambientLight(mouseX,mouseY,400,-mouseX)
//fill(255)
rotateX(rotx);
rotateY(roty);
//box(60);
rotate(rotx);
rotate(roty);
translate(0, 100);
// box(100);
translate(0, -200);
//box(100);
translate(0, 0);
fill(100);
sphere(500);
rotx = rotx + 0.02;
roty = roty + 0.02;
translate(-0, 100);
fill(255, 255, 255, 0);
sphere(50);
translate(-70,0)
rotate(0.1)
sphere(20)
stroke(255);
}