Change RAW modulate in code

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Godot_Starter

I want to light up my sprite in code by setting the raw values to 1.5 1.5 1.5. I can do that in the editor in the modulate settings, but how can i do it in code?

:bust_in_silhouette: Reply From: Help me please

you can try this because it works fine for me

$Sprite.modulate = Color(1.5, 1.5, 1.5)

or if code is attatched to sprite:

modulate = Color(1.5, 1.5, 1.5)