#include "colors.inc" light_source { <0, 10, -100> color White } camera { location <0, 1, -2> look_at <0, 0, 0> } background { color White } //configure our die's shape #declare diesides = 5; #declare dieheight = .5; #declare dierotate = -37; #declare siderotate = 360/diesides; #declare currentside = diesides; intersection { #while (currentside > 0) plane { z, 0 rotate rotate <0,siderotate*currentside,0> translate <0,dieheight,0> } #declare currentside = currentside - 1; #end pigment { color Green } rotate <0,10,0> }