Closest | Actual Color | |||||||||
---|---|---|---|---|---|---|---|---|---|---|
%s | " % s for s in ["r", "g", "b", "color", "color", "Δ", "r", "g", "b", "c code", "name", "identifier"]]) html += "" for c in colors: def rgb(c): return '%d | %d | %d | ' % (c["r"], c["g"], c["b"]) def color(c): return '' % (c["r"], c["g"], c["b"]) def c_code(c): return "(GColor){{.rgba=0b{:02b}{:02b}{:02b}11}}".format(c["r"] / 64, c["g"] / 64, c["b"] / 64) html += ' | ||||||
%d | ' % c["dist"] html += rgb(c) html += ''+c_code(c)+' | '
html += '' if "url" in c: html += '%s' % (c["url"], c["name"]) else: html += c["name"] html += ' | %s | ' % c["identifier"] html += "