![](./styles/ca_black/imageset/buy1.png)
Color palette
Re: Color palette
![Wink ;-)](./images/smilies/icon_wink.gif)
Of course we are open to other palettes.
I'm not sure there's an easy way to test the colors in game though
![Sad :(](./images/smilies/icon_sad.gif)
IIRC Remake reads palette from pal_0 file, so if you could edit it with a hex tool or Graphics Reader (did it allowed palette editing?).
KaM Remake at: http://www.kamremake.com
Original MBWR/WR2/AFC/FVR tools at: http://krom.reveur.de
Re: Color palette
The question is - should I attempt to create a modified palette? Or could the support for a separate player color pallete be added first (would simplify testing)?
Castle Guard Swordsman
Posts: 1912
Joined: 03 Oct 2008, 22:00
KaM Skill Level: Skilled
Location: "Pawel95" on Youtube.com
Re: Color palette
![Mr Green :mrgreen:](./images/smilies/icon_mrgreen.gif)
Re: Color palette
![Smile :)](./images/smilies/icon_smile.gif)
I'm rather busy at the moment, but I hope Lewin or Andreus can take a look into this
![Smile :)](./images/smilies/icon_smile.gif)
KaM Remake at: http://www.kamremake.com
Original MBWR/WR2/AFC/FVR tools at: http://krom.reveur.de
![User avatar](./download/file.php?avatar=59_1324087674.png)
Posts: 3822
Joined: 16 Sep 2007, 22:00
KaM Skill Level: Skilled
ICQ: 269127056
Website: http://lewin.hodgman.id.au
Yahoo Messenger: lewinlewinhodgman
Location: Australia
Re: Color palette
The only reason for not using full RGB is so the UI is neater, since a full RGB selector is hard to fit. But from a technical point of view there's no reason not to allow colours to be full RGB (that's already how it works underneth). So the static script command that sets the colour can be in RGB, allowing testing new colours easily using a text mission editor (.DAT). So if the RGB colour is on the palette it will select that, otherwise it will be "custom" (maybe let people edit a hex code if they want, or just select the closest colour on the palette).
Using an RGB command in the static script also means we can change the palette later without messing up the indexes used in everyone's missions (if scripts contain palette indexes we can't change that palette which is restrictive). I see no reason to put the new palette into a BBM/LBM file since it's purely for UI purposes. Might as well hard code it like all our other UI stuff.
Re: Color palette
I suggest changing multiplayer colors to RGB as well and altering some of them, the blue, black a light green are too sharp. Perhaps I could whip up a list of RGB codes for the multiplayer? I know to some this seems like a minor thing, but I am seriously upset every time I see some of the colors.
Re: Color palette
![Smile :)](./images/smilies/icon_smile.gif)
KaM Remake at: http://www.kamremake.com
Original MBWR/WR2/AFC/FVR tools at: http://krom.reveur.de
![User avatar](./download/file.php?avatar=59_1324087674.png)
Posts: 3822
Joined: 16 Sep 2007, 22:00
KaM Skill Level: Skilled
ICQ: 269127056
Website: http://lewin.hodgman.id.au
Yahoo Messenger: lewinlewinhodgman
Location: Australia
Re: Color palette
I fully agree on using full RGB in the static script, maybe mention it as a note beside the pallete in the editor.
I suggest changing multiplayer colors to RGB as well and altering some of them, the blue, black a light green are too sharp. Perhaps I could whip up a list of RGB codes for the multiplayer? I know to some this seems like a minor thing, but I am seriously upset every time I see some of the colors.
- Code:
const //Colors available for selection in multiplayer MP_COLOR_COUNT = 18; MP_TEAM_COLORS: array [1..MP_COLOR_COUNT] of Cardinal = ( $FF0707FF, //Red $FF0061FF, //Orange $FF07FFFF, //Yellow $FF00D4A8, //Olive green $FF00FF00, //Lime green $FF008000, //Dark green $FF61793F, //Teal (Sea) $FFE3BB5B, //Cyan $FFFF0000, //Blue $FFBA3468, //Violet (Amethyst) $FF800080, //Purple $FFFF67FF, //Pink $FF000080, //Maroon $FF518FCF, //Peach $FF004F7D, //Brown $FFFFFFFF, //White $FF808080, //Grey $FF000000 //Black );
Feel free to suggest changes/improvements. But it's probably hard for you to test it until I add a command to set the colour in RGB.
Re: Color palette
![Smile :)](./images/smilies/icon_smile.gif)
Color codes:
in a post below in the correct format
Feel free to suggest changes/improvements. But it's probably hard for you to test it until I add a command to set the colour in RGB.
For anyone wondering, testing colors like this and getting the codes is very easy with some kind of color picker (I got ColorPix - lets you pick a color from anywhere on your screen) and GIMP, which has a pallete editor, checkerboard filter and can export the pallete in several formats. If anyone wants to test something, I can also explain how to modify the pal_0 file to get new color in the editor.
Re: Color palette
![Smile :)](./images/smilies/icon_smile.gif)
Just a sidenote, as I don't have KaM at hand, can you test your colors to be well distinguishable from terrain on minimap? )
KaM Remake at: http://www.kamremake.com
Original MBWR/WR2/AFC/FVR tools at: http://krom.reveur.de
Re: Color palette
Also, the list in the needed format:
- Code:
$FF00005E, // Maroon $FF0000EB, // Red $FF076CF8, // Orange $FF00C9FF, // Yellow $FF0EC5A2, // Lime green $FF00A100, // Bright green $FF134B00, // Dark green $FF7A9E00, // Teal $FFFACE64, // Sky blue $FF973400, // Blue $FFCB3972, // Violet (Amethyst) $FF720468, // Purple $FFDE8FFB, // Pink $FF519EC9, // Tan $FF103C52, // Brown $FFFFFFFF, // White $FF838383, // Grey $FF1B1B1B // Black
![User avatar](./download/file.php?avatar=59_1324087674.png)
Posts: 3822
Joined: 16 Sep 2007, 22:00
KaM Skill Level: Skilled
ICQ: 269127056
Website: http://lewin.hodgman.id.au
Yahoo Messenger: lewinlewinhodgman
Location: Australia
Re: Color palette
![Razz :P](./images/smilies/icon_razz.gif)
EDIT: I've made a new palette for the map editor:
![Image](http://i.imgur.com/6byUYbt.png)
Iterating RGB does not give an intuitive palette layout, so I generated this palette by iterating hue, brightness and saturation (in that order). There are 17 hues, 4 brightness levels and 4 saturation levels. At the bottom is a 16 colour grayscale from black to white. This gives 17*4*4 + 16 = 288 colours in total. Originally I used 15 hues so there were 256 colours, but then there was no solid yellow (just orange-yellow and yellow-green) so I increased it to 17 hues which gives a nice yellow. It still fits in the UI nicely so I don't think it's a problem.
Then I thought that saturation isn't as important as brightness, so I changed it to be: 17 hues, 5 brightness levels, 3 saturation levels: (15x18 grid)
![Image](http://i.imgur.com/WaeyiKD.png)
This seems better than the first palette, but it's hard to tell. Maybe you prefer the first one? (the first one has 18 more colours)
I think this palette is a fairly good compromise between:
- Covering a good range of colours
- Having a nice intuitive layout (each row is a different hue, darkest on left, brightest on right)
- Being easy to generate (I'm not going to hand pick 256 colours and manually lay them out on a grid, I want a simple algorithm like this to do it)
If someone wants to suggest a better palette (or algorithm to generate one) please let me know. Keep in mind that the colours are hard to judge within the palette, you need to see them on their own. For example the lowest saturation colours (columns of grey) look like they are almost completely grey, but when you see them on their own they are clearly not.
Re: Color palette
![Smile :)](./images/smilies/icon_smile.gif)
![Lol :lol:](./images/smilies/icon_lol.gif)
Regarding the singleplayer editor palette - when I was looking into choosing colors in an easy and intuitive way, I ended up with the HSL color model. It is easy and intuitive to use and needs just three sliders and nothing else.
http://en.wikipedia.org/wiki/HSL_and_HSV
http://hslpicker.com
If you would consider using a picker instead of a palette, I think this would be the way to go.
From the two palettes you posted, the second one is better I think. After looking at it a bit, it seems that a lot of colors can actually be found there even if it doesn't look like it at the first glance. Although the brown selection took a hit I think...
![User avatar](./download/file.php?avatar=59_1324087674.png)
Posts: 3822
Joined: 16 Sep 2007, 22:00
KaM Skill Level: Skilled
ICQ: 269127056
Website: http://lewin.hodgman.id.au
Yahoo Messenger: lewinlewinhodgman
Location: Australia
Re: Color palette
@Lewin So can I except the colors to be in the next release?Red being the "main" color didn't occur to me (I hate the color in KaM as it was forced onto me in the campaign
)
![Smile :)](./images/smilies/icon_smile.gif)
Regarding the singleplayer editor palette - when I was looking into choosing colors in an easy and intuitive way, I ended up with the HSL color model. It is easy and intuitive to use and needs just three sliders and nothing else.
http://en.wikipedia.org/wiki/HSL_and_HSV
http://hslpicker.com
If you would consider using a picker instead of a palette, I think this would be the way to go.
From the two palettes you posted, the second one is better I think. After looking at it a bit, it seems that a lot of colors can actually be found there even if it doesn't look like it at the first glance. Although the brown selection took a hit I think...
![Razz :P](./images/smilies/icon_razz.gif)
Return to “Feedback / Discussion”
Who is online
Users browsing this forum: No registered users and 7 guests