// Last edited on DATE TIME by USER
// Processed by remove-cam-lights
#include "colors.inc"

  

  
  

background{ color rgb < 0.75, 0.80, 0.85 > }

#declare string_texto = "Meulogo"
#declare texto =
  text { ttf "comic.ttf" string_texto, 1 , 0 }

#declare cyl_texture = pigment { 
    marble
    color_map {
      [0.0 color rgb <1.0, 1.0, 0.0>]
      [0.5 color rgb <0.0, 0.0, 1.0>]
      [1.0 color rgb <0.4, 0.4, 1.0>]
    }
    turbulence 0.8
  }
#declare text_texture = pigment { rgb < 1.0, 0.0, 0.0 > }

#declare texto_max_extent = max_extent( texto );
#declare tam_texto = strlen( string_texto );
#declare rotacao = 22.5;

#macro gira_texto()
  #declare iterator = 1;
  #while ( iterator <= tam_texto )

      #declare texto_temp = substr( string_texto, iterator, 1 )
      #declare texto_obj = text { ttf "comic.ttf", texto_temp, 1.0, 0 }

      object { texto_obj 
 scale < 1.2, 1.2, 1.0 >
 translate < 0.0, 1.5 - (texto_max_extent.y / 2), 2.5 >
 rotate < 0.0, (rotacao * (iterator - 1)), 0.0 >
 texture { text_texture }
      }

      #declare iterator = iterator + 1;
  #end  
#end

difference{
  
  cylinder { 
 < 0.0, 0.0, 0.0 >, < 0.0, 3.0, 0.0 >, 3 
 texture { cyl_texture }
  }

  gira_texto()

}

// Original camera parameters:
// #local cam_ctr = <0,0,0>
// #local cam_vec = <13.00,5.00,8.00>
// #local cam_sky = y

#include "camlight.inc"
camlight(<0,0,0>,<10,10,10>,20.0,y,1.0)