s = sphere() --创建一个球,作为一个变量赋值给s,()内球参数的缺省值
for i =1 to 20 do-- for循环结构20作为列数
for j = 1 to 30 do--30作为行数
in s --表示以下复制的所有球都以第一个球为父物体
copy s pos:[i*50,j*45,50*(sin(i*18)*cos(j*18))]
with animate on --动画开始
for t in 0 to 100 do at time t
(sphere()).pos=[500*sin(t*36),500*cos(t*36),t*30]