import pygame
import random
import math
pygame.init()
win = pygame.display.set_mode((500,500))
pygame.display.set_caption("")
run = True
while run:
for event in pygame.event.get():
if event.type == pygame.QUIT:
run = False
if event.type == pygame.KEYDOWN:
if event.key == pygame.K_RETURN:
pygame.image.save(win, "image.jpg")
for x in range(0,361):
x1 = 200 +math.cos(x)*175
y1= 200+math.cos(x)*175
x2 = 200 +math.cos(x)*175
y2= 200+math.sin(x)*175
pygame.draw.circle(win, (255,255,255), (x1, y1), 25,1)
pygame.draw.circle(win, (255,255,255), (x2, y2), 25,1)
pygame.display.update()
pygame.quit()
|