Photoresistor and strange input on analog pin

question - how is that photoresistor suppose to know what color it is as apposed to there's a light on???