txt3.py

Created by schraf

Created on April 05, 2023

530 Bytes


from kandinsky import *
from time import sleep
from random import choice

density = 'ABCxyz01═|+:. '
t = len(density)
f, coul = 0, ((250,35,190),(120,35,160),(230,230,255),(40,110,150),(50,240,240))

fill_rect(0,0,320,222,(0,0,0))
while True:
  if f % 32 == 0: c = choice(coul)  
  for y in range(16):
    if y != 8:
      v = ''
      for x in range(32):
        val = (x - 16) / (y - 8)
        v += chr(int(val + 16 + f * 0.3) % 94 + 32)
      draw_string(v,0,4+14*y - 10 * (y > 8),c,(0,0,0))
  f += 1 
  sleep(.02)