(easy question i think) how do i know which number is which color?

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


with command:

sprite.modulate = Color(1, 1, 1, 0.5)

so i change the color to transparent but how do i know which number is which color? how can i change it to … maybe black?

i’m hoping u can understand my question, i don’t really know how to describe my question and my english isn’t the best :smiley: if not then let me know

:bust_in_silhouette: Reply From: AlexTheRegent

This is RGBA color. There are many ways to choose color, here you can read about some of them Color Codes: What's the Difference Between Hex, RGB, and HSL? - Make Tech Easier. You can also use colorpickers (for example, this https://colorpicker.me/) to get code for color you want (note that if RGB is presented in range 0-255, you need to divide each channel by 255, because Godot use percent-based values (in range of 0-1)).

Very detailed answer additionally you can use Godot’s built-in Globals Color.black Color.red Color.blue etc…

Wakatta | 2021-01-09 15:38

thank you :slight_smile:

felaix | 2021-01-09 15:39