print('Usage: at # prompt, enter 6-digit hex code or nothing to quit')

while True:
    h = input('#')
    n = int(h.strip(), base=16)
    print('vec3(', end='')
    print(round((n >> 16)/0xFF, 3), end=', ')
    print(round(((n >> 8) & 0xFF)/0xFF, 3), end=', ')
    print(round((n & 0xFF)/0xFF, 3), end=')\n')

3bd9335fab624c56ab0c70bd86a6b8b3b0d95ec7
<mask token>

print('Usage: at # prompt, enter 6-digit hex code or nothing to quit')
while True:
    h = input('#')
    n = int(h.strip(), base=16)
    print('vec3(', end='')
    print(round((n >> 16) / 255, 3), end=', ')
    print(round((n >> 8 & 255) / 255, 3), end=', ')
    print(round((n & 255) / 255, 3), end=')\n')

print('Usage: at # prompt, enter 6-digit hex code or nothing to quit')

while True:
    h = input('#')
    n = int(h.strip(), base=16)
    print('vec3(', end='')
    print(round((n >> 16)/0xFF, 3), end=', ')
    print(round(((n >> 8) & 0xFF)/0xFF, 3), end=', ')
    print(round((n & 0xFF)/0xFF, 3), end=')\n')
