#!/bin/python
import pygame, sys
green = (0, 255, 0)
black = (0, 0, 0)
red = (255, 0, 0)
pygame.init()
sc = pygame.display.set_mode((500, 700))
while True:
sc.fill((125,125,125))
for event in pygame.event.get():
if event.type == pygame.QUIT:
pygame.quit()
sys.exit()
pygame.draw.arc(sc, green,(150, 50, 210, 150),0,3.14, 3)
pygame.draw.arc(sc, green,(150, 50, 210, 150),1.5*3.14,3.14*0.5, 3)
pygame.draw.line(sc, black, [150, 150], [150,400], 3)
pygame.draw.line(sc, black, [350, 150], [350,400], 3)
pygame.draw.arc(sc, green,(150, 340, 200, 150),0,3.14, 3)
pygame.draw.arc(sc, green,(150, 340, 200, 150),1.5*3.14,3.14*0.5, 3)
pygame.display.flip()
|