[pyar] hola!

Sebastián Seba ssebastianj en gmail.com
Lun Ago 11 09:59:21 ART 2014


2014-08-08 18:03 GMT-03:00 Felipe Madero <felipe.madero en gmail.com>:

>
> import pygame
> import turtle
> import numpy
>
> pygame.init()
> font = pygame.font.SysFont(None, 48)
> surf = font.render('Hola Mundo PyAr :D', False, (0,0,0), (255,255,255))
> cols, rows = surf.get_size()
> arr = pygame.surfarray.array2d(surf)
> turtle.shape("turtle")
> for (x, y), val in numpy.ndenumerate(arr):
>     if val:
>         turtle.penup()
>         turtle.goto(x - cols/2, -y + rows/2)
>         turtle.pendown()
>         turtle.forward(1)
> turtle.hideturtle()
> turtle.mainloop()
>
>
>
> _______________________________________________
> pyar mailing list pyar en python.org.ar
> http://listas.python.org.ar/listinfo/pyar
>
> PyAr - Python Argentina - Sitio web: http://www.python.org.ar/
>
> La lista de PyAr esta Hosteada en USLA - Usuarios de Software Libre de
> Argentina - http://www.usla.org.ar
>

¡Benvenuto! Que tengas una estadía pythonesca (Y)

-- 
*Sebastián J. Seba*
------------ próxima parte ------------
Se ha borrado un adjunto en formato HTML...
URL: <http://listas.python.org.ar/pipermail/pyar/attachments/20140811/626bc28d/attachment-0001.html>


More information about the pyar mailing list