summaryrefslogtreecommitdiff
path: root/main.py
blob: 5295f054c3735a2cefdb339817fb7259dd163816 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
def color(x):
	ret = ''
	for i in range(0, 6):
		ret += hex(2 * (x // 8**i % 8))[2:]
	return ret

f = open('index.html', 'w')
f.write('<meta charset="utf-8">\n')
f.write('<body style="font-size:6px">\n')
for i in range(0, 2**18):
	try:
		f.write('<span style="display:inline-block;width:8px;background-color:#' + color(2**18 - 1 - i) + '">' + chr(i) + '</span>\n')
	except:
		pass
f.write('</body>\n')
f.close()