def adjust(colors, light):
raw_colors = colors[:<NUM_LIT:1>] + colors[<NUM_LIT:8>:<NUM_LIT:16>] + colors[<NUM_LIT:8>:-<NUM_LIT:1>]<EOL>if light:<EOL><INDENT>for color in raw_colors:<EOL><INDENT>color = util.saturate_color(color, <NUM_LIT:0.5>)<EOL><DEDENT>raw_colors[<NUM_LIT:0>] = util.lighten_color(colors[-<NUM_LIT:1>], <NUM_LIT>)<EOL>raw_colors[<NUM_LIT:7>] = colors[<NUM_LIT:0>]<EOL>raw_colors[<NUM_LIT:8>] = util.darken_color(colors[-<NUM_LIT:1>], <NUM_LIT>)<EOL>raw_colors[<NUM_LIT:15>] = colors[<NUM_LIT:0>]<EOL><DEDENT>else:<EOL><INDENT>if raw_colors[<NUM_LIT:0>][<NUM_LIT:1>] != "<STR_LIT:0>":<EOL><INDENT>raw_colors[<NUM_LIT:0>] = util.darken_color(raw_colors[<NUM_LIT:0>], <NUM_LIT>)<EOL><DEDENT>raw_colors[<NUM_LIT:7>] = util.blend_color(raw_colors[<NUM_LIT:7>], "<STR_LIT>")<EOL>raw_colors[<NUM_LIT:8>] = util.darken_color(raw_colors[<NUM_LIT:7>], <NUM_LIT>)<EOL>raw_colors[<NUM_LIT:15>] = util.blend_color(raw_colors[<NUM_LIT:15>], "<STR_LIT>")<EOL><DEDENT>return raw_colors<EOL>
Adjust the generated colors and store them in a dict that
       we will later save in json format.