# Original Lua/TIC-80 source was live-coded in # 25 minutes by exoticorn during a 256-byte battle # at outlinedemoparty.nl 2021-05-15 # # function TIC()t=time()/1e3 # for i=0,32639 do # x=i%240-120 # y=i//240-68 # z=20/(x*x+y*y)^.5+t # q=z%9<6 and z-z%9+6 or z # w=9/y+t # c=y>0 and w 0 and w < q: c = (14 if pow(x*(w - t), 2) < 39 else 6) + w%2 else: if -y*(q - t) < 99/(pow(x*(q - t)/50, 2) + 1): c = z%2 if q == z else 3 else: c = 9 - y/3 - ((0x2 >> (-y%3)) & 1) unicorn.set_pixel(8 + x, 15 - (y + 9), *palette[int(c)]) unicorn.set_pixel(15 - (8 + x), 15 - (y + 9), *palette[int(c)]) unicorn.show() sleep(0.025) except KeyboardInterrupt: unicorn.off()