bbox -100,-100,200,200,true l = 99.99; wall (-1, 0, 1*l), -1*l, 1*l, green wall ( 1, 0, 1*l), -1*l, 1*l, green wall ( 0,-1, 1*l), -1*l, 1*l, green wall ( 0, 1, 1*l), -1*l, 1*l, green bmin = -0.8*l; bmax = 0.8*l; rr = (bmax-bmin)/20; d = 0.49*rr; balltype t1, d, 100000*d, black balltype t2, d/10, d, magenta balltype t3, d, d, blue # ball (0,l-1.1*2*d), (randn*l,-1*l), t2 # divider with hole for y (-l+rr/2:rr:-rr/2) { ball (0,-y), (0,0), t1 ball (0, y), (0,0), t1 } # balls on the left for i (0:1:1000) { y = -l+d/10 + 2*(l-d/10)*rand; x = -l+d/10 + (-d-d/10-(-l+d/10))*rand; ball (x,y), (10*randn,10*randn), t2 }