I want to create a “gradual colour change” effect in Godot.
eg: some_set_font_color_func(Color8(255,n,n)
where n gradually decreases to make the text fade from white to red.
I can’t figure out what function I would use in place of some_set_font_color_func
to change a font’s colour.
Godot themes are somewhat confusing. Given some var var UI:control
how would I set the colour of any font(s) contained within that node?
Me: “I don’t really understand shaders, and I’ve already tried to create a theme. Could you just explain
set_color
with examples of whatname
andtheme_type
may be in case that helps?”# Assuming 'UI' is your Control node UI.set_color("font_color", "Label", Color(1.0, 0.5, 0.5)) # Example values, adjust as needed
Me: “Don’t worry. Godot 3 is an older LTS version, so it’s documentation probably won’t get update much. Jan 2022 knowledge is fine.”
Me: “That solved my problem. Thank you.”
It’s scary how good AI is getting.