Complete.Org: Mailing Lists: Archives: freeciv-dev: June 2000:
[Freeciv-Dev] Re: minimap city colors?
Home

[Freeciv-Dev] Re: minimap city colors?

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: freeciv-dev@xxxxxxxxxxx (Freeciv developers)
Subject: [Freeciv-Dev] Re: minimap city colors?
From: Reinier Post <rp@xxxxxxxxxx>
Date: Tue, 20 Jun 2000 17:27:48 +0200

> [...] 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



[Prev in Thread] Current Thread [Next in Thread]