xxxxxxxxxx
from sage.plot.plot3d.shapes import Sphere
var('x,y,z'); c='#3030ff'; n=12
s1=Sphere(8,color=c,opacity=.05).translate(0,0,0)
s2=Sphere(3,color=c).translate(0,0,0)
sn=[s1+s2+Sphere(1,color=(.2*i,0,.3*i))\
.translate(0,7*cos(pi*i/n),4*sin(pi*i/n))
for i in [0..2*n]]
animate(sn,frame=False)
No comments:
Post a Comment