avocados/support/screenAlpha.py

19 lines
468 B
Python
Raw Normal View History

2014-08-30 15:19:15 +02:00
#!/usr/bin/env python3
import pygame
from pygame.locals import *
pygame.init()
displayInfo = pygame.display.Info()
zoom = 1.3
WIDTH = int(displayInfo.current_w / zoom)
HEIGHT = int(displayInfo.current_h / zoom)
# this will be the Surface you work on (in the docs referenced as Surface)
screen = pygame.display.set_mode((WIDTH, HEIGHT))
screenAlpha = screen.convert_alpha()
pygame.display.set_caption("Pink Unicorns are waiting but what is the HOTkey?!?!?!1111")