xxxxxxxxxx
let x = 0
let y = 0
let z = 0
function setup() {
createCanvas( 800, 800, WEBGL);
noStroke()
background (1)
}
function draw() {
// one in the center
push()
// fill(255,236,0)
fill (1)
sphere(50)
// orbiting the center
push()
rotateZ(frameCount/150)
translate(200,0,0)
fill(1)
sphere(10)
// thin one
push()
rotateZ(frameCount/100)
translate(50,0,0)
fill(255)
sphere(5)
// phat one
push()
rotateZ(frameCount/100)
translate(75,0,0)
fill (random(255))
// fill( 100, 200, 100)
sphere(10)
pop()
pop()
pop()
pop()
}