set pm3d depth lighting set object rect from sc 0,0 to sc 1,1 behind fc "#114400" set palette function 1, 0.1+0.2*gray*rand(0), 0.2 set samples 96 set isosamples 128 unset border unset tics unset colorbox unset key set xyplane 0 set view 60,30, 1.5, set term pngcairo size 360,360 set out "apple.png" set parametric set urange [0:2*pi] set vrange [-pi:pi] x(u,v) = (4+3.8*cos(v)) * cos(u) y(u,v) = (4+3.8*cos(v)) * sin(u) z(u,v) = (cos(v)+sin(v)-1)*(1+sin(v))*log(1-pi*v/10) + 7.5*sin(v) splot x(u,v), y(u,v), z(u,v) w pm3d !display "apple.png" |