xxxxxxxxxx
35
function setup() {
createCanvas(windowWidth, windowHeight, WEBGL);
colorMode(HSB, 360, 100, 100);
angleMode(DEGREES);
}
function draw() {
background(0);
orbitControl();
ambientLight(0, 0, 100);
pointLight(0, 0, 50, -width, -height, 10);
push();
rotateX(90);
rotateZ(90);
ambientMaterial(50, 70, 100);
noStroke();
ellipsoid(width / 16, height / 8, width / 16);
rotateX(90);
fill(0, 0, 0);
translate(0, 0, -width / 32);
torus(width / 64, height / 16);
translate(0, 0, width / 16);
torus(width / 64, height / 16);
rotateZ(270)
translate(-width/128,0,width/128*7)
cylinder(width / 128, height / 16)
translate(width/128,0,-width/128*7)
rotateZ(-270)
ambientMaterial(50, 70, 100);
translate(0, 0, -width / 8);
rotateX(270);
cone(width / 32, height / 16);
pop();
}