Heya, new to Godot and the forum :smiley:

I'm trying to set a color transition on the procedural sky when an area is entered and exited.

How do i transition between Color(R,G,B,A) to Color(other values) ? And same for simple float values ( to set the curve gradient curve) ?

We will probably need more info on how your sky is made in order to tell you how to change the color. =D

Note that regenerating the procedural sky can take some time in Godot 3.x, so you may have to decrease the procedural sky resolution to avoid stuttering during gameplay.

Other than that, I would recommend using the Tween node for this purpose. You could use an AnimationPlayer on the WorldEnvironment's environment resource, but AnimationPlayer isn't the best tool for the job when you don't know both the initial value and the final value in advance.

Oh, I know the intial and final values. I aim to set_top_horizon, set_horizon_color, set_curve etc.

Apparently Tweens don't take arrays... Error converting Color to float...

But there seems to be a methode with a loop, an array index and the initial and en colors. But the example i found is only for sprites with an animationplayer:

https://godotengine.org/qa/5393/how-to-create-color-transition-sprite-around-the-color-wheel

Here is the node setup:

The first image is showing areas entered by the player, that should trigger the animations, for specific colors corresponding a time of the day.

a year later