Tutorial by Examples

This program draws some shapes and 'hello world!' and let an image go to every corner of the window. the complete code: import pygame,sys from pygame.locals import * pygame.init() FPS = 30 #frames per second setting fpsClock = pygame.time.Clock() #set up the window screen = pygame.disp...
When you have to use both PIL and Pygame because missing functionalities in both of them, you need a way to convert between Pygame Surfaces and PIL Images, preferably without writing them to the disk. For that you can use "tostring" and "fromstring" functions provided in both li...

Page 1 of 1