// A Badass PasteBin

// A Badass PasteBin

import os, pygame

# position of window
os.environ['SDL_VIDEO_WINDOW_POS'] = "%d,%d" % (20, 20)

pygame.init()

white = (255, 255, 255)
black = (0, 0, 0)
red = (255, 0, 0)
grey = (127, 127, 127)

screensize = (500, 500)

gameDisplay = pygame.display.set_mode(screensize)

gameDisplay.fill(white)

gameExit = False

clock = pygame.time.Clock()

while 1:
    for event in pygame.event.get():
        if event.type == pygame.QUIT:
            pygame.quit()
            quit()


    pygame.draw.rect(gameDisplay, red, [100, 100, 10, 10])
    pygame.display.update()


    clock.tick(30)
ID: yazr
URL:
Expires: Never
Created: Tue, 14 Nov 2017 12:06:47 -0800
(3 days ago)

Share this Paste

Use the following URLs to access this Paste

You do know how to copy and paste, right?

×

Edit

×

Encrypt

×

Delete this Paste

Hit the delete button below to make this FN Paste disappear forever.

×
© Copyright 2017 fnPaste.com
// Web Hosting provided by Krellen