Compare commits
2 Commits
d706c7e18e
...
e3f85d16ea
Author | SHA1 | Date |
---|---|---|
汪炜 | e3f85d16ea | 6 months ago |
汪炜 | 310332eeea | 6 months ago |
@ -0,0 +1,13 @@
|
||||
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()
|
Loading…
Reference in new issue