Question, Please explain 4 digit color code?

Started by QuantumX, November 20, 2017, 05:04:26 AM

Previous topic - Next topic

QuantumX

Hello,

Could someone explain this four digit color code?

<color>(255, 77, 77, 242)</color>

I understand the 3 digit ones as RGB decimal, but i don't understand what the four decimal digit above come from? Sorry bit of a newbie where color codes are concerned?

Could someone point me to an online tool for this perhaps?

Albion

In what XML file did you find this color code?

CannibarRechter

When you see a 4th value, typically one of the values is alpha; I, like Albion, am surprised that RW is using a 4th value, however. AFAIK, up until A17, alpha only works with specific shaders, and RW tends not to use alpha regardless, due to shenanigans with how items that have alpha stack on top of each other (or, to wit: fail to).
CR All Mods and Tools Download Link
CR Total Texture Overhaul : Gives RimWorld a Natural Feel
CR Moddable: make RimWorld more moddable.
CR CompFX: display dynamic effects over RimWorld objects

QuantumX

So when i was looking into the orbital strike feature found this in the "ethereal_orbitstrikes.xml" file saw the colour code and was surprised by it, though i would ask the question on what it is doing.

CannibarRechter

CR All Mods and Tools Download Link
CR Total Texture Overhaul : Gives RimWorld a Natural Feel
CR Moddable: make RimWorld more moddable.
CR CompFX: display dynamic effects over RimWorld objects