Re: [PHP] Font color

2005-04-15 Thread trlists
Here is a little code that shows the "web-safe" colors and their "opposites" using the algorithm I described in the previous message: "); print("\n"); print("Color\n"); print("Color swatch\n"); print("'Opposite' swatch\n"); print("'Opposite' color\n"

Re: [PHP] Font color

2005-04-15 Thread trlists
On 16 Apr 2005 Ryan A wrote: > eg: if they pick white I need the heading to be black and vice > versa...any way to do this? Well it depends what you mean by "opposite", but as a starting approach I would try simply complementing the bits in the RGB value: $opposite_color = $original_co