make_shapes.sh
291 Bytes
#!/bin/bash
width=500
height=500
for shape in cone; do
#box sphere tube trapezoid torus polyhedron; do
echo '#include "shapes.pov"' >| tmp.pov
echo "${shape^^}()" >> tmp.pov
povray -V +W${width} +H${height} +Itmp.pov +O${shape}.png
mogrify -strip -transparent white ${shape}.png
done