Advertisement
Guest User

Untitled

a guest
Feb 19th, 2017
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.77 KB | None | 0 0
  1. def efecto_escritura(x, y, color,texto):
  2. texto_completo = texto
  3. ultimo_texto=''
  4. imagen_inicial = gimp.image_list()[0]
  5. #Color del texto
  6. gimp.set_foreground(color)
  7.  
  8. # Parámetros Fuente
  9. fontname= 'Sans' #Tipo de letra
  10. size_type=PIXELS
  11. size= 30 #Tamaño
  12. antialias = True
  13. border = 0
  14. #y = 0
  15. #x = 0
  16. drawable = None
  17. image = imagen_inicial
  18. for i in texto_completo:
  19. ultimo_texto=ultimo_texto+i
  20. layer = pdb.gimp_text_fontname(image, drawable, x, y, ultimo_texto, border, antialias, size, size_type, fontname)
  21. print(ultimo_texto)
  22.  
  23. efecto_escritura(58,209,(255, 255, 255), 'Stackoverflow en español')
  24.  
  25. print(sys.version)
  26. 2.7.10 (default, May 23 2015, 09:40:32) [MSC v.1500 32 bit (Intel)]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement