Fractal Softworks Forum

Please login or register.

Login with username, password and session length

Author Topic: Why do weapon files use a 4 value colour code?  (Read 1256 times)

oranoron

  • Lieutenant
  • **
  • Posts: 85
    • View Profile
Why do weapon files use a 4 value colour code?
« on: November 15, 2013, 02:01:51 PM »

I'm trying to teach myself how to mod weapon files and when it comes to colours why are there 4 sets of numbers per colour instead of 3?

Example

"fringeColor":[0,255,0,225],
"coreColor":[255,255,255,255],
"glowColor":[155,255,155,255],

In this case, the tactical laser, the core colour is white which is typically represented by 255, 255, 255. What is the additional set represent and which is not part oft he standard coordinate system? The first or last set? Please explain.


Never mind, I just found out there is a four colour system and that the game uses it. Please delete.
« Last Edit: November 15, 2013, 02:03:44 PM by oranoron »
Logged

CrashToDesktop

  • Admiral
  • *****
  • Posts: 3876
  • Quartermaster
    • View Profile
Re: Why do weapon files use a 4 value colour code?
« Reply #1 on: November 15, 2013, 03:01:27 PM »

Actually, the last one is the opacity level, e.g. how visible it is.  That what you found out, to make sure?
Logged
Quote from: Trylobot
I am officially an epoch.
Quote from: Thaago
Note: please sacrifice your goats responsibly, look up the proper pronunciation of Alex's name. We wouldn't want some other project receiving mystic power.

oranoron

  • Lieutenant
  • **
  • Posts: 85
    • View Profile
Re: Why do weapon files use a 4 value colour code?
« Reply #2 on: November 15, 2013, 05:30:07 PM »

Oh snap, that isn't what I've been assuming. I though the game qas using the CMYK colour code system instead of the sRGB codes. That would explain the issues I'm having.

Edit: Thanks, my effects are now the colour I was trying to make (shimmering copper).
« Last Edit: November 15, 2013, 05:38:34 PM by oranoron »
Logged