#!/bin/python
import pygame, sys
import random
import math
green = (0, 255, 0)
blue = (0, 0, 128)
red = (255, 0, 0)
pygame.init()
sc = pygame.display.set_mode((500, 500))
pygame.display.set_caption("Простая анимашка 3")
r = 150
a = 0
sc.fill((125,125,125))
it = 0
while True:
sc.fill((125,125,125))
for event in pygame.event.get():
if event.type == pygame.QUIT:
pygame.quit()
sys.exit()
for a in range(0,360,25):
x = 250+(r)*math.cos(a*(3.14/180))
y = 250+(r)*math.sin(a*(3.14/180))
pygame.draw.circle(sc, green, (int(x), int(y)),random.randint(5,25))
pygame.display.flip()
|