def get(img, light=False):
    """Get colorscheme."""
    cols = gen_colors(img)

    if len(cols) < 6:
        logging.error("colorz failed to generate enough colors.")
        logging.error("Try another backend or another image. (wal --backend)")
        sys.exit(1)

    return adjust(cols, light)
def get ( img , light = False ) : cols = gen_colors ( img ) if len ( cols ) < 6 : logging . error ( "colorz failed to generate enough colors." ) logging . error ( "Try another backend or another image. (wal --backend)" ) sys . exit ( 1 ) return adjust ( cols , light )
Get colorscheme.