pygame.event.get():
if event.type in(QUIT,KEYDOWN):
sys.exit()
screen.fill(blue)
# 圆绘制...cgrct(圆心,半径相同为圆)
pygame.draw.arc(screen,color,((240, 150), (200, 200)), 0, math.pi, 2)
#线段绘制...pygame.draw.line(screen,color,(100,100),(300,200),3)
#绘制多个连续的线段 线条(Surface,color,closed,pointlist...closed为true 最后一个点和开始点会连接
pygame.draw.lines(screen,color,True,((400,100),(400,200),(350,400)),2)
#绘制抗锯齿线段...如果blend为true,则阴影将与现有像素阴影混合而不是覆盖它们
pygame.draw.aaline(screen,color,(200,500),(300,700),1)
#绘制多个抗锯齿线段