Skip to content

Instantly share code, notes, and snippets.

@parzibyte
Created November 5, 2020 05:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save parzibyte/a60ee7f5b7628ee54c82e7151cfe9297 to your computer and use it in GitHub Desktop.
Save parzibyte/a60ee7f5b7628ee54c82e7151cfe9297 to your computer and use it in GitHub Desktop.
"""
https://parzibyte.me/blog
"""
ruta_imagen = "manzana.png"
ancho_deseado = 20
alto_deseado = 40
imagen_original = pygame.image.load(ruta_imagen)
imagen_redimensionada = pygame.transform.scale(imagen_original, (ancho_deseado, alto_deseado))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment