// PovRay definitions to generate pretty source code screen shot // using the src_screenshot utility #include "colors.inc" #include "stones.inc" #include "textures.inc" #include "shapes.inc" #include "glass.inc" #include "metals.inc" #include "woods.inc" #macro TLMPCALL(title,len,offx,offy) box { , texture { pigment { color rgbf<1.0, 1.0, 1.0, 0.7> } } } text { ttf "timrom.ttf" title 1, 0 pigment { Red } //scale len*x translate } #end #macro TLMPF(title,len,offx,offy) // box { // , // // texture { // pigment { color rgbf<1.0, 1.0, 1.0, 0.7> } // } // } text { ttf "timrom.ttf" title 1, 0 pigment { Red } //scale len*x translate } #end #macro TLMPFUNCTION(title,len,offx,offy) box { , texture { pigment { color rgbf<1.0, 1.0, 1.0, 0.7> } } } text { ttf "timrom.ttf" title 1, 0 pigment { Red } //scale len*x translate } #end #macro TLMPOBJ(title,len,offx,offy) box { , texture { pigment { color rgbf<1.0, 1.0, 1.0, 0.7> } } } text { ttf "timrom.ttf" title 1, 0 pigment { Red } //scale len*x translate } #end #declare TUBERADIUS = 0.2; #macro TLMPTUBE_MIDDLE(len,offx,offy) // Horizontal cylinder { , TUBERADIUS texture { pigment {color Yellow }} } cylinder { , , TUBERADIUS texture { pigment {color Yellow }} } #end #macro TLMPTUBE(len,offx,offy) cylinder { , , TUBERADIUS texture { pigment {color Yellow }} } #end #macro TLMPTUBE_FIRST(len,offx,offy) // Vertical cylinder { , , TUBERADIUS texture { pigment {color Yellow }} } // Horizontal cylinder { , TUBERADIUS texture { pigment {color Yellow }} } #end #macro TLMPTUBE_LAST(len,offx,offy) // Horizontal cylinder { , TUBERADIUS texture { pigment {color Yellow }} } cylinder { , , TUBERADIUS texture { pigment {color Yellow }} } sphere { TUBERADIUS texture { pigment {color Yellow }} } #end #macro TLMPTUBE_ONE(len,offx,offy) // Horizontal pointing to the functag cylinder { , TUBERADIUS texture { pigment {color Yellow }} } cylinder { , , TUBERADIUS texture { pigment {color Yellow }} } sphere { TUBERADIUS texture { pigment {color Yellow }} } #end background { color White } light_source { <0,0,-100> White }