Re: [PHP] Reversing the Colour

2002-10-09 Thread ::[ Julien Bonastre ]::
col_arr=split(",",preg_replace("/([\d]{2})([\d]{2})([\d]{2})/","$1,$2,$3" ,$bgcol)); Anyway... - Original Message - From: "::[ Julien Bonastre ]::" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, October 09, 2002 11:59 PM Subjec

Re: [PHP] Reversing the Colour.

2002-10-09 Thread ::[ Julien Bonastre ]::
have the $midcol var which holds a uppercase HTML hex colour string which represents the midway colour between $bgcol and $lncol.. Finally.. :-p Ok HIH - Original Message - From: "::[ Julien Bonastre ]::" <[EMAIL PROTECTED]> To: "::[ Julien Bonastre ]::"

Re: [PHP] Reversing the Colour.

2002-10-09 Thread ::[ Julien Bonastre ]::
Assumptions: - background colour is stored in $bgcol (ie 4592FF) - chosen link colour is stored in $lncol (ie *same as above*) - Finds "half-way" colour between $bgcol and $lncol (returns a RRGGBB in hex as above) Notes: This is actually fairly simple Alexis.. Simply convert your hex vals to some

Re: [PHP] Reversing the Colour.

2002-10-09 Thread Pekka Saarinen
At 10/9/2002, you wrote: >Hi, > >I have a site whereby the user can select the colour of links for their >individual sections. > >What I would like to do is to get the exact opposite colour of the one that >they choose and use that in the 'hover over' option of the tag. > >The value for the colou