xxxxxxxxxx
from sage.plot.plot3d.shapes import Box
var('t')
tr(t)=(2*sin(t/20)*cos(t/20),cos(t/30),2*sin(t/20)**2)
def _(N=(210,0,-30)):
p=sum([Box([.1,.1,.001],color=(.3*i,.1*i,1))\
.translate(tr(i)) for i in [0..N]])
p.show(frame=False)
No comments:
Post a Comment