Guest User

planeta9.py

a guest
Dec 12th, 2025
150
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.38 KB | None | 0 0
  1. import pygame
  2.  
  3. pygame.init()
  4. surf = pygame.image.load("Orion-Taurus.jpg")
  5.  
  6. w, h = surf.get_size()
  7. for x in range(w):
  8.     for y in range(h):
  9.         r, g, b, *_ = surf.get_at((x, y))
  10.         r*=10
  11.         if r>255: r=255
  12.         g*=10
  13.         if g>255: g=255
  14.         b*=10
  15.         if b>255: b=255
  16.         surf.set_at((x, y), (r, g, b))
  17.  
  18. pygame.image.save(surf, "saida.png")
  19. pygame.quit()
Advertisement
Add Comment
Please, Sign In to add comment