matrix.py

Created by marius-layan

Created on September 06, 2024

351 Bytes

Petite animation de la matrice dans le film “Matrix”.


from random import *
from kandinsky import *
def list():
  l.append([])
  for i in range(a):
    l[-1].append(randint(0,9))
def view():
  if len(l)==15:del l[0]
  for i in range(len(l)):
    for j in range(a):draw_string(str(l[i][j]),j*10,(len(l)-1-i)*16,'green','black')
fill_rect(0,0,320,222,'black');l,a=[],32
while True:list();view()