Convert text to a colored image

Rules: Each character is always converted to the same color (but different characters can sometimes have the same color)