Cannabis plants are heliotropic, meaning that they grow towards the sun. They are also phototropic, meaning that they grow towards light.
Cannabis plants need both sunlight and darkness in order to grow properly. If they do not receive enough of either, they will not be able to grow properly.