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

[PHP] Font color

2005-04-15 Thread Ryan A
Hey, On our profiles page we are allowing the person to pick their own font color and background image, the font color is picked by a DHTML popup and displays "swatches" of color, when the user picks the color she wants its html RRGGBB value is automatically inserted... Heres the problemthe pr