JimmyJack wrote:I don't get the format for the colors. I mean xx,xx,xx,ff. Paint and Gimp both do not use this numbering system.
I have tried changing numbers randomly and can't find a pattern that will let me "fine tune" the shade or color.
The palette file
'./data/base/palette.txt' uses an
RGBA color model, with the channels:
- Red light
- Green light
- Blue light
- Alpha, which denotes opacity.
Their values are written in hexadecimal notation, which represents the numbers 10-15 with the letters A-F, in addition to 0-9.
They can range from 0 to 255, so that FF is the largest possible value.
As you can see, most colors use the maximum amount of opacity, i.e. they are non-transparent.
JimmyJack wrote:So anyway how do I find the color that I am looking for in that format? There has got to be a program or a "how to" written on it some where. I just can't find it.
You did not tell us what exactly what you are trying to achieve (remember asking
smart questions). Thus I must guess.
You can look up player colors
at the Warzone Atlassian website, if that is what you want.
If no colors to be changed are transparent, you could ignore their alpha channel and use GIMP:
The "FG/BG Colour" dialog contains a button labeled "Scales".
Click on it, select the button labeled "0..255" and pick a color by dragging sliders for the RGB channels.
Its hexadecimal value is printed in a box below the sliders:
- GIMP window showing how to pick an RGB color
Alternatively, you could use one of the countless color tools for web developers that are freely available online (e.g.
"HTML CSS Color Picker").
If you need to work with transparent colors, using GIMP is more complicated.
Opacity can only be added to a color by adding an alpha channel, which requires an extra layer if you want to see more than one color at a time. The easiest way is to:
- press "R" (for the "Rectangle Select Tool")
- select an area by dragging the mouse
- press "Ctrl-C" (to copy it)
- press "Ctrl-V" (to paste it)
- and press "Ctrl-Shift-N" (to create the layer).
Afterwards, you can alter the opacity value with a precision of 1/1000 using a slider:
- GIMP window showing how to add transparency to an RGB color
Much easier is to use a website like MDN's
"color picker tool".
Note that this provides you with an opacity precision of only 1/100.