头像
import pygame
from math import pi
pygame.init()
screen = pygame.display.set_mode((600,400))
screen.fill((255,255,255))
pygame.display.flip()
font = pygame.font.Font('./files/aa.ttf', 24)
text = font.render('dragon sea', True, (0, 255, 0))
screen.blit(text, (0, 0))
pygame.draw.circle(screen,(255,0,0),(560,240),24,0)
#pygame.draw.aaline(screen, (255,0,0), (100,100), (240,240), 1)
pygame.draw.rect(screen,(0,0,255),(0,240,600,160),0)
# points = [(50, 100), (200, 100), (250, 200), (120, 250), (30, 160)]
# pygame.draw.lines(screen, (255, 0, 0), True, points, 6)
pygame.draw.arc(screen,(0,0,255),(240,200,24,24),pi/2,0,1)
pygame.draw.arc(screen,(0,0,255),(230,200,48,48),pi/2*3,pi/2,1)
pygame.draw.arc(screen,(0,0,255),(280,210,12,24),pi/2,0,1)
pygame.draw.arc(screen,(0,0,255),(290,210,24,48),pi/2*3,pi/2,1)
pygame.draw.arc(screen,(0,0,255),(280,210,48,24),0,pi,1)
pygame.display.flip()
while True:
for event in pygame.event.get():
if event.type == pygame.QUIT:
exit()
捕获.PNG