#include "colors.inc" #include "shapes.inc" #declare I = 0; #while ( I < 12 ) object { Sphere translate 5*x rotate 30*I*y pigment { color Red } } #declare I = I + 1; #end /* // POV-Ray ver.3.7 では for 文も利用可能... #for (I, 0, 11, 1) object { ... } #end */ // 座標軸 object { Cylinder_X scale 0.05 pigment{color Red} } // x軸 object { Cylinder_Y scale 0.05 pigment{color Green} } // y軸 object { Cylinder_Z scale 0.05 pigment{color Blue} } // z軸 // 背景 background { color LightBlue } // 光源 light_source { <50, 100, -100> color White*1.5 parallel point_at <0, 0, 0> } // カメラ camera { location <10.0, 10.0, -15.0> look_at <0.0, 0.0, 0.0> angle 35 }