This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python3 | |
| # inspired by https://github.com/busyloop/lolcat | |
| import sys | |
| import re | |
| import os | |
| from math import ceil | |
| from colorsys import hsv_to_rgb | |
| from unicodedata import east_asian_width |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| _ = ( | |
| 255, | |
| lambda | |
| V ,B,c | |
| :c and Y(V*V+B,B, c | |
| -1)if(abs(V)<6)else | |
| ( 2+c-4*abs(V)**-0.4)/i | |
| ) ;v, x=1500,1000;C=range(v*x | |
| );import struct;P=struct.pack;M,\ | |
| j ='<QIIHHHH',open('M.bmp','wb').write |