Re: Darken and lighten color?
| From: | Leif K-Brooks | Date: | Sun, 19 Oct 2003 05:18:50 +0000 |
| Subject: | Re: Darken and lighten color? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-166644@lists.php.net to get a copy of this message | ||
Chris Shiflett wrote:
--- Leif K-Brooks <eurleif@buyer-brokerage.com> wrote:I'm looking for a nice alithogram to darken and lighten a color by a certain ammount.Maybe you mean algorithm? :-) Yep. My ability to spell decreases 5% every 15 minutes after 12AM.
To lighten, increase RGB values by 10% each. To darken, decrease RGB values by 10% each. Maybe replace 10 with whatever the "certain amount" is. But what do I do with something like 40,40,255? What happens to the 255?
Is that all you're wanting to do? Yup.-- The above message is encrypted with double rot13 encoding. Any unauthorized attempt to decrypt it will be prosecuted to the full extent of the law.