What's inside the sphere (P3D)
in
Share your Work
•
6 months ago
I was wondering what was inside the sphere... ;). I think I found it.
void draw()
{
lights();
if ((height/2+i/10)/2<217)
{
background(0, 0, 255);
}
else
{
background(255, 100, 0);
}
stroke(0);
strokeWeight(2.5);
if (F1==0)
{
i=(i+0.7)%50000;
}
fill(255, 0, 0);
translate(width/2, height/2, height/2+i/10);
rotateY(i/400);
rotateX(i/200);
sphere(10+i/6);
if ((height/2+i/10)/2>=217&&F1==0)
{
fill(255, 255, 0);
strokeWeight(0.2);
stroke(255,0,0);
sphere(height/30);
}
if ((height/2+i/10)/2>=257|F1==1)
{
F1=1;
i=(i-0.7)%50000;
fill(255, 255, 0);
strokeWeight(0.2);
stroke(255,0,0);
sphere(height/30);
}
}