What are the functions of these two sentences in "The Hut is Broken by Autumn Wind" in describing the scenery?

The poem "In a blink of an eye, the wind gathers clouds and ink, and in autumn, the desert turns dark" has two functions in the poem: one is to write about the natural environment, explain specific events (bad weather), and render a specific (gloomy and miserable) atmosphere; The second is to set off the poet's mood (sadness) and gain motivation for the great mind (broadness) of the following poets.

The phrase "the wind will instantly set the color of clouds and ink, and the autumn is bleak and dark" uses a lot of pen and ink to render a gloomy and sad atmosphere, thus setting off the poet's gloomy and sad mood. It is expected that there will be dense raindrops sprinkled on the ground from the bleak autumn sky.

The autumn wind broke the hut.

Dynasty: Tang Dynasty

Author: Du Fu

Original text:

In August and autumn, the wind roared and rolled up my three hairs. Hair flew over the river and sprinkled on the periphery of the river. The highest one hangs a long forest tip, and the lower one floats to Shentang 'ao.

The children in Nancun bully me, and I can't stand being a thief in the opposite direction and openly carrying Mao into the bamboo forest. My lips are burnt, my mouth is dry, and I can't breathe. When I came back, I sighed at my staff.

In an instant, the wind will set the color of the clouds and ink, and the autumn will be bleak and dark. This cloth has been as cold as iron for many years, and Joule has been lying down and cracking. There is no dry place in the bedside table, and the feet are numb with rain. What's the point of getting wet all night?

There are tens of millions of luxury houses in Ande, which greatly protect the poor people in the world from the spring breeze and the wind and rain! Oh! When I suddenly see this house in front of me, I will freeze to death alone! ?