[Freeciv-Dev] Re: minimap city colors?
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
> [...] You probably
> couldn't simply statically assign the colours by hand in the race ruleset
> files, because there are going to be too many clashes between all the
> races.
At the moment it's worse: a fixed table in client/gui-*/colors.c.
Wouldn't it be possible to traverse the colour space in a systematic
manner? Define a distance function between any two colours, eg.
int colordistance (int red1,blue1,green1, red2,blue2,green2)
{
return int(red1-red2)+int(blue1-blue2)+int(green1-green2));
}
and iterate in such a way that the next colour picked is always
at maximal distance to all the previous colours.
Some reserved colours (black, sea blue, grass green)
would be picked in advance.
> Another option might be for players to be able to use a colour picker to
> assign a colour to a given civ.
Yes. The distance notion would be needed here to decide
if a colour is acceptable.
> Alternatively, each player could assign their own colour
> scheme, and it could stay entirely client-side (but then re-starting a game
> becomes a problem).
Not necessarily, if the colour remapping is part of the client-side options
(not tied to a game, but to a client).
--
Reinier Post
|
|