Add color detection.

Signed-off-by: Adrien Berthet <berthet.a@gmail.com>