xxxxxxxxxx
t=Tachyon(xres=600,yres=400,camera_center=(2,0,0))
t.light((3,2,1),.3,(1,1,1))
p1=(0,.7,0); p2=(.7,0,0)
p3=(0,0,.7); p4=(-.7,-.7,-.7)
t.texture('tr',ambient=.01,diffuse=.3,
specular=.5,opacity=.5,color=(1,0,0))
t.texture('tg',ambient=.05,diffuse=.6,
specular=.75,opacity=.75,color=(0,1,0))
t.texture('tb',ambient=.1,diffuse=.9,
specular=1.,opacity=1.,color=(0,0,1))
t.sphere(p1,.2,'tr'); t.sphere(p2,.2,'tg')
t.sphere(p3,.2,'tb'); t.fcylinder(p1,p4,.05,'tr')
t.fcylinder(p2,p4,.05,'tg'); t.fcylinder(p3,p4,.05,'tb')
t.show()
No comments:
Post a Comment