Skip to content

Instantly share code, notes, and snippets.

@lamarmarshall
Created March 1, 2025 14:35
Show Gist options
  • Save lamarmarshall/bf4c90aea9811e56edc9fc15c5e5fb18 to your computer and use it in GitHub Desktop.
Save lamarmarshall/bf4c90aea9811e56edc9fc15c5e5fb18 to your computer and use it in GitHub Desktop.
godot, change color over time
var red: Color = Color.RED
var white: Color = Color.WHITE
var blended_color = red.lerp(white, float(current_health) / float(max_health))
label_3d.modulate = blended_color
@NumbersTada
Copy link

those who know

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment