Skills : color detection

To detect the color of 2 color mats, does the drone has to land on mat and detect colors? If not a mandatory landing, is it possible for codrone edu to detect color from a distance in air?

From Robolink:

The color sensor and the optical flow of the CoDrone EDU are set to disable when the drone enters its flight state and will only enable when the drone is flat on a surface and not moving, therefore the color sensor does not work when the drone is actively flying. You must land the drone on the surface you would like to detect and then call the color sensor.