Making a good palette is something you need to learn with practise. If you can not make a good palette for something specific from scratch, you wont be able to make a "best" palette. And again, "best" makes no sense in this case anyway.
What if I can borrow NES palette and extend it? I know it won't be best, but it will be very good. Or do you think it would be best?
You still need to define 'best', since what palette is 'best' is a matter of application and personal taste.
For me, when I am considering generic palettes such as the one I linked above, I think in terms of minimizing visual error.
That is, my criteria is to take a large variety of images, quantize them to one palette and then to another; Compare those three sets (original, palette A, palette B); and the version which looks most like the original image, is the one I consider as 'better'.
Even in this example, it's apparent that simply 'best' is not a real thing; it is a process of finding two palettes, comparing their performance, and deciding that one achieves better performance than the other, for that specific usage.
Maybe this is a language-based misunderstanding, and the word you want is actually something different from 'best'?
Sorry, but too few information. I need a quote showing what I want to do.
What? He is asking YOU to explain what it is that you intend to do. You are asking about 'best palettes'. What is your purpose in asking that question?
To be clear: you can't simply 'have a best palette' that you use for everything. You can have a palette that you like and use for everything, but it cannot actually be 'best' for every use. All of the palettes we have considered so far will perform quite poorly when applied to a smooth airbrushed greyscale image, for example; but if you attempt to make them better at greyscale , then you will certainly make them worse for other uses.
Since that is the case, there is no possibility -- none -- for us to post any palette that is even 'good', never mind 'best'. Until you explain how you intend to use the palette.
If your intent is simply 'have a best 256color palette, and use it for everything' -- I'm afraid that is completely impossible. No such thing exists, and our current knowledge of
human vision suggests that no one, no matter how clever, can ever invent one.
If your intent is more modest -- for example, you have a few particular projects you want to find a 'best' palette for.. That kind of thing is possible.
If that is your intent, please say so clearly.
Please excuse me for repeating myself, I just feel that I need to explain this idea in several different ways so that one of them will be communicated accurately to you.
EDIT: on the general topic of general 256color palettes, this looks interesting, and almost certainly better than the standard 6 6 6 or 8 8 4 colorcube palettes. My tests confirm it.
Thanks, I might consider it. This page reminded me of using 9-bit RGB and limiting 8 LSB combinations to 4 of them. In "Hardware Palette" section, red LSB was made by xoring green and blue LSBs:
00=000 (slighty dark or black)
01=101 (slighty magenta)
10=110 (slighty yellow)
11=011 (slighty cyan)
Yes, it's quite a clever solution.
However, it is not made by xoring green and blue LSBs, but red and blue LSBs. That's what the page says, at least.