(easy question) 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

Hey.

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: TheJokingJack

Well, I mean, you could have a completely white sprite put into a scene, and then when you run it, try modulating the colours through the modulate() function (just like you did), and run it to test and see what colour it is, but, sometimes a quick Google search does the job.

If you type a colour hex code, for example, “#d27b9e” into the Google search bar.
As for the colour type you are using, I copied the numbers “1, 1, 1, 0.5” from your question, searched it up, and found a site/online pdf with a lot of colour samples!

It’s right here: https://www.tug.org/pracjourn/2007-4/walden/color.pdf

(Hopefully this helps)