0 votes

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 :D if not then let me know

Godot version linux newest
in Engine by (35 points)

1 Answer

0 votes

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)

by (204 points)
Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.