[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [pygame] looking for pygame minimal examples



On Wed, Oct 8, 2008 at 8:54 AM, kschnee <kschnee@xxxxxxxxxx> wrote:
<code>
## Create an SDL window for graphics, and draw a blue square.
import pygame
screen = pygame.display.set_mode((800,600))
pygame.draw.rect((42,42,200,200),(0,0,255),0)) ## Parameter order might be
wrong
pygame.display.update()
</code>
pygame.draw.rect(screen,(0,0,255),(42,42,200,200),0)

Ian