[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: automatic colour selection with good contrast
- From: Ben Laurie <ben algroup co uk>
- To: gtk-app-devel-list redhat com
- Subject: Re: automatic colour selection with good contrast
- Date: Mon, 18 Oct 1999 16:40:09 +0100
Rene' Seindal wrote:
>
> Sunjay Bhatnagar wrote:
> >
> > Hi All,
> >
> > I need an algorithm which, given a background colour, can figure out
> > to some reasonable extend, a colour which should be used as the
> > foreground colour such that whatever is drawn using the foreground
> > colour is easily visible to the human eye (in terms of contrast etc.).
> >
> > Such algos. must be in use in many softwares and I would appreciate
> > any pointers/ideas towards this.
>
> I am not an expert in this matter, but wouldn't the completary colour
> do, i.e., the colour (1.0-r, 1.0-g, 1.0-b) if your base colour is
> (r,g,b). It might not be pleasing, but it should give good visual
> contrast.
Errr ... no! Consider r=g=b=.5!
Cheers,
Ben.
--
http://www.apache-ssl.org/ben.html
"My grandfather once told me that there are two kinds of people: those
who work and those who take the credit. He told me to try to be in the
first group; there was less competition there."
- Indira Gandhi
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]