// Last edited on 2014-02-22 15:05:58 by stolfilocal #local n = 3; // Number of lines #local font = "tt-fonts/arialbd.ttf" #local logo45_line = array[n]; #local logo45_line[0] = text{ ttf font concat("COMPUTA", chr(130), chr(204), "O") 1 0 texture{ tx_red } } #local text1 = text{ ttf font "45" 1 0 } #local marg1 = 0.05; #local logo45_line[1] = difference{ box{ min_extent(text1) - < marg1, marg1, 0 >, max_extent(text1) + < marg1, marg1, 0 > } object{ text1 translate +0.05*z } texture{ tx_orange } } #local logo45_line[2] = text{ ttf font "ANOS" 1 0 texture{ tx_blue } } #local szX = 6.0; #local thk = 3.0; #local szY = 0; #declare logo45 = union{ #local i = n - 1; #while (i >= 0) #local line = logo45_line[i] #local lo = min_extent(line); #local hi = max_extent(line); #local scaleXY = szX/(hi.x - lo.x); #local scaleZ = thk/(hi.z - lo.z); // Dimensions after scaling: #local dY = scaleXY*(hi.y - lo.y); // Height of line. #local mY = 0.01*dY; // Spacing above and below line. object{ line translate -lo scale < scaleXY, scaleXY, scaleZ > translate (szY + mY)*y } #local szY = szY + dY + 2*mY; #local i = i - 1; #end } #declare logo45_sz = < szX, szY, thk >;