def brightness_to_ascii(i, density=0):
    """
    Get an appropriate char of brightness from a rgb color
    """
    chars_collection = DENSITY[density]
    size = len(chars_collection) - 1
    index = int(size * i / 255)
    return chars_collection[index]

    Get an appropriate char of brightness from a rgb color
    
video_to_ascii/render_strategy/image_processor_win.py