def generate_colormap(colors, palette):
	result = []

	for color in colors:
		index = search_palette(palette, color)
		result.append(index)

	return result
Given a list of colors, translate these into indexes into
dataset/ETHPy150Open freedoom/freedoom/lumps/colormap/colormap.py/generate_colormap