Better twilight() func