import pygame

width = 1024
height = 512
screen = pygame.display.set_mode((width, height))
clock = pygame.time.Clock()


def main():
	for event in pygame.event.get():
		if event.type==pygame.QUIT:
			return False
	pygame.display.flip()
	clock.tick(60)
	screen.fill((255,255,255))
	return True

def line(x1,y1,x2,y2):
	pygame.draw.line(screen,(245,245,0),(int(x1),int(y1)),(int(x2),int(y2)))

def circle(x,y):
	pygame.draw.circle(screen, (220,0,220), (int(x),int(y)), 2)

def plot(x,y):
	screen.set_at((int(x),int(y)),(0,127,0))

if __name__ == "__main__":
	while main():
		plot(width/2,height/2)
