Green Computing
Green computing (also known as green IT or sustainable IT) is the design, manufacture, use and disposal of computers, chips, other technology components and peripherals in a way that limits the harmful impact on the environment.

Your While Loop could save the world:
Yes Indeed, if you limit your loop to do only what is needed instead of continous looping, this will save energy and reduce carbon-emissions. Also another interesting fact your dark theme is saving 15 watts more than light theme.
Microsoft is a leading Tech in Green Computing, they are planning to be zero-carbon by 2030, and they held these commitments: