pygame.display.init() screen = pygame.display.set_mode( ( 1024, 768 ) ) screen = pygame.display.set_mode( ( 1024, 768 ), pygame.FULLSCREEN ) pygame.display.flip() python simpleImage.py network.png chmod +x viewer.py mv viewer.py viewer import pygame shape = pygame.surface.Surface ( ( 500, 500 ) ) pygame.draw.rect ( shape, ( 0, 250, 0 ), ( 100, 100, 300, 300 ), 5 ) pygame.image.save ( shape, "rect.tga" ) shape = pygame.surface.Surface ( ( 500, 500 ) ) points = list() points.append ( ( 250, 100 ) ) points.append ( ( 400, 250 ) ) points.append ( ( 250, 400 ) ) points.append ( ( 100, 250 ) ) pygame.draw.polygon ( shape, ( 0, 250, 0 ), points, 5 ) pygame.image.save ( shape, "polygon.tga" ) shape = pygame.surface.Surface ( ( 500, 500 ) ) pygame.draw.circle ( shape, ( 0, 250, 0 ), ( 250, 250 ), 200, 5 ) pygame.image.save (shape, "circle.tga" ) shape = pygame.surface.Surface ( ( 500, 500 ) ) pygame.draw.ellipse ( shape, ( 0, 250, 0 ), ( 100, 200, 300, 100 ), 5 ) pygame.image.save ( shape, "ellipse.tga" ) import pygame import math shape = pygame.surface.Surface ( ( 500, 500 ) ) pygame.draw.arc ( shape, ( 0, 250, 0 ), ( 100, 200, 300, 100 ), 0, math.radians ( 270 ), 5 ) pygame.image.save ( shape, "arc.tga" ) shape = pygame.surface.Surface ( ( 500, 500 ) ) pygame.draw.line ( shape, ( 0, 250, 0 ), ( 100, 100 ), ( 400, 400 ), 5 ) pygame.image.save ( shape, "line.tga" )