#!/bin/python
import pygame, sys
import random
import math
WHITE = (255, 255, 255)
pygame.init()
sc = pygame.display.set_mode((500, 500))
pygame.display.set_caption("Круговой беспредел")
sc.fill((125,125,125))
x1 = 0
state = 0
while True:
for event in pygame.event.get():
if event.type == pygame.QUIT:
pygame.quit()
sys.exit()
if state == 0:
for ind in range(50,500,50):
pygame.draw.circle(sc, WHITE, (int(x1), ind),random.randint(5,20))
x1 = x1 + random.randint(1,25)
if x1 >= 500:
state = 1
pygame.display.flip()
|