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('\n') f.write('