You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
368 B
14 lines
368 B
6 months ago
|
import pygame,sys
|
||
|
import math
|
||
|
pygame.init()
|
||
|
screen = pygame.display.set_mode([640,480])
|
||
|
screen.fill([249,204,226])
|
||
|
for x in range(0,640):
|
||
|
y = int(math.sin(x/640.0*4*math.pi)*200+240)
|
||
|
pygame.draw.rect(screen,[0,0,0],[x,y,1,1],1)
|
||
|
pygame.display.flip()
|
||
|
while True:
|
||
|
for event in pygame.event.get():
|
||
|
if event.type == pygame.QUIT:
|
||
|
sys.exit()
|