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.
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.
Palette file stupid question
Palette file stupid question
Transmission ends ...
Re: Palette file stupid question
The format is RBGA red blue green alphaSo 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
The easy way is to remove the FF at the end and try the first 3 numbers as its RBG
Code: Select all
1,1,1,ff // black
ff,ff,ff,ff // white
1,1,1,ff // reload background
ff,ff,ff,ff // reload bar
0,ff,0,ff // health high
ff,ff,0,ff // health medium
ff,0,0,ff // health low
0,ff,0,ff // green
ff,0,0,ff // red
ff,ff,0,ff // yellow
0,1,61,ff // menu background
0,15,f0,ff // menu border
85,1,1,ff // menu load border
ff,ff,ff,ff // cursor
1,1,21,ff // menu scores interior
64,64,a0,ff // menu separator
ff,ff,ff,ff // text bright
a0,a0,ff,ff // text medium
60,60,ff,ff // text dark
1,1,1,ff // score box border
Good lucks there sunshine
Re: Palette file stupid question
The palette file './data/base/palette.txt' uses an RGBA color model, with the channels: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.
- Red light
- Green light
- Blue light
- Alpha, which denotes opacity.
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.
You did not tell us what exactly what you are trying to achieve (remember asking smart questions). Thus I must guess.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 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:
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).
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.
Re: Palette file stupid question
Thanks guys. Lots of help. Looks like it may not be as hard as I first thought.
Sorry about that. I meant, "pick a color, any color" and then find the numerical representation of that color.
But with all the links you posted it looks like I can just play with it until the color finds me.
I am all teeth here! Thanks again.
Forgon wrote: ↑13 Sep 2018, 19:23You did not tell us what exactly what you are trying to achieve (remember asking smart questions). Thus I must guess.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.
Sorry about that. I meant, "pick a color, any color" and then find the numerical representation of that color.
But with all the links you posted it looks like I can just play with it until the color finds me.
I am all teeth here! Thanks again.
Transmission ends ...