// Sample scene. // yuqk monoBoxChars.pov +w800 +h800 +p // As animation: // yuqk monoBoxChars.pov +w800 +h800 +p +kff10 #version unofficial 3.8; // yuqk #if (file_exists("version.inc")) #include "version.inc" #end #if (!defined(Fork_yuqk)) #error "This POV-Ray SDL code requires the yuqk fork." #end global_settings { assumed_gamma 1.0 } #declare VarOrthoMult = 3.0/max(image_width/image_height,image_height/image_width); #declare Camera01z = camera { orthographic location <0,0,-2> direction z right VarOrthoMult*x*max(1,image_width/image_height) up VarOrthoMult*y*max(1,image_height/image_width) } #include "functions.inc" #declare // FontFile = "/home/pokorny/Fonts/LiberationMono-Regular.ttf" FontFile = "/home/pokorny/Fonts/UbuntuMono-R.ttf" #declare BoxChars = "─│┌┐└┘├┤┬┴┼┼┼┼┼─│" #declare RndSd = seed(f_clock(0,0,0)*1e2); #declare Rows = 12; #declare Cols = 20; #declare Ary = array[Rows] #for (R,0,Rows-1,1) #declare Ary[R] = concat( #for (C,0,Cols-1,1) substr(BoxChars,int(1+rand(RndSd)*(strlen(BoxChars)-1e-6)),1), #end "") #end plane { -z 0 pigment { bool_object { #for (R,0,Rows-1,1) text { ttf FontFile Ary[R] 1,0 translate <0,6-(1*R),0> } #end pigment { rgb 0 } pigment { rgb <1,1,0> } } scale <1/5,1/5,1> translate <-1,-0.1,-0.5> } finish { emission 1 } } camera { Camera01z }