Modern led bulbs can do both and then with home assistant you can script it so the color temperature changes through the day as the sun changes.

In the morning my house is cool light around 3k and over the day it warms up to about 6500k

They also make bulbs that automatically change as you dim them since a smart bulb may not be practical or even possible everywhere.
Incandescent did this without software.
I’ve never seen an incandescent tube bulb but maybe they exist