in reply to to generate a set of well contrasted colors

Though it might be very difficult to implement, I would suggest that you take into accound the needs of color deficient users. What looks contrasting to me may look very similar to someone else. Safe Web Colours is a good website with design tips regarding color-deficiency.

Because of this difficulty, I would suggest that you either a) compile a data set of colors that are contrasting for any user or b) scrap the bg changing shenanegins. In general, I would suggest the latter because even without color deficiency, some combinations are too harsh to be of any use.

Hope this helps!

  • Comment on Re: to generate a set of well contrasted colors

Replies are listed 'Best First'.
Re: Re: to generate a set of well contrasted colors
by pg (Canon) on Nov 07, 2003 at 01:34 UTC

    I guess this is why one should come to perlmonk often.

    I have never thought of this before, and this is definitely a reply I didn't expect. One's thinking is always narrowed, and that's why one need talk to people, ask for wisedom!

    I will look into it more, and see whether can turn this into a picture transformation module. I feel that it is a bit of waste to use it only for text, considering the thinking and implementation might take. If I come up with anything, I will post it in cool use of Perl and credit you on the post.

Re: Re: to generate a set of well contrasted colors
by LTjake (Prior) on Nov 07, 2003 at 17:46 UTC

    To add to the above comment, Cal Henderson has a module on CPAN called Graphics::ColorDeficiency. It allows you to simulate color deficiencies. You can even get the resulting color as hex for html use.

    See also, this page on his site.

    --
    "To err is human, but to really foul things up you need a computer." --Paul Ehrlich