add color check
Merge pull request #3 from jeromedecoster/color

add color check