background{ color rgb < 1.00, 1.00, 1.00 > } light_source { < 0.00, -5.00, 0.50 > color rgb < 1.00, 1.00, 1.00 > } camera { location < 0.00, -2.00, 1.00 > right < -1.20, 0.00, 0.00 > up < 0.00, 0.00, 0.90 > sky < 0.00, 0.00, 1.00 > look_at < 0.00, 0.00, 0.00 > } #declare tinta_azul = texture { pigment { color rgb < 0.30, 0.00, 1.00 > } finish { diffuse 0.5 specular 0.5 roughness 0.005 ambient 0.1 } } #declare h = text { ttf "arial.ttf" "H" 0.10, 0.00 texture { tinta_azul } translate -0.4647*x translate -0.0353*z translate -0.50*y rotate 90*x rotate -45*z } #declare b = text { ttf "arial.ttf" "B" 0.10, 0.00 texture { tinta_azul } translate -0.50*y rotate 90*x rotate 45*z } #if ( clock <= 1 ) #declare tempo = 4*clock*(1-clock); union { object { h rotate <0, 0, tempo*45> } object { b rotate <0, 0, -tempo*45> } } #else // (if clock is > 1, we're on the second phase) // we still want to work with a value from 0 - 1 #declare ElseClock = clock - 1; #declare tempo = 4*ElseClock*(1-ElseClock); union { object { h rotate <0, 0, tempo*45> } object { b rotate <0, 0, -tempo*45> } } #end