# You can move spheres on wxt termnal window using mouse. 
# Have a fun!
set pm3d depth lighting primary 0.4 specular 0.3
set palette defined (0 1 0 0, 0.4 1 1 0, 0.6 0.5 1 0, 0.8 0 0 1, 1 2./3 0 1)

unset border
unset tics
unset colorbox
unset key
L = 1.3
set xrange [-L:2*L]
set yrange [-L:2*L]
set zrange [-L:2*L]
set cbrange [0:1]
set xyplane 0
set view 140,120, 1.8
set samples 36
set isosamples 36
set parametric
set urange [-pi/36:pi]
set vrange [-pi:pi]

x(u,v)=0.5*sin(u)*cos(v)
y(u,v)=0.5*sin(u)*sin(v)
z(u,v)=0.5*cos(u)

set macro
x="x($1,$2)"
y="y($1,$2)"
z="z($1,$2)"

set term wxt enh size 360,360 background "#114400"
seed=rand(time(0))
splot for [i=1:10] \
xa = 2*rand(0) ya=2*rand(0) za=2*rand(0) ca=rand(0) r = 0.3+0.7*rand(0)\
'++' using (r*@x+xa):(r*@y+ya):(r*@z+za):(ca) w pm3d

pause -1