Unlimited Usenet
day retention, 99% Completion, Unlimited Access, Free Trial!

Darken and lighten color?

This is a discussion on Darken and lighten color? within the PHP General forums, part of the PHP Programming Forums category; I'm looking for a nice alithogram to darken and lighten a color by a certain ammount. I know this ...


Go Back   Usenet Forums > PHP Programming Forums > PHP General

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 10-19-2003
Leif K-Brooks
 
Posts: n/a
Default Darken and lighten color?

I'm looking for a nice alithogram to darken and lighten a color by a
certain ammount. I know this isn't strictly a PHP question, but I'm
doing it in PHP and there isn't anywhere better to ask.

--
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.
Reply With Quote
  #2 (permalink)  
Old 10-19-2003
Chris Shiflett
 
Posts: n/a
Default Re: [PHP] Darken and lighten color?

--- 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? :-)

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.

Is that all you're wanting to do?

Chris

=====
My Blog
http://shiflett.org/
HTTP Developer's Handbook
http://httphandbook.org/
RAMP Training Courses
http://www.nyphp.org/ramp
Reply With Quote
  #3 (permalink)  
Old 10-19-2003
Leif K-Brooks
 
Posts: n/a
Default Re: [PHP] Darken and lighten color?

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.
Reply With Quote
  #4 (permalink)  
Old 10-19-2003
Becoming Digital
 
Posts: n/a
Default Re: [PHP] Darken and lighten color?

> But what do I do with something like 40,40,255? What happens to the 255?

You just have to leave it at 255. That's what Illustrator does.

Edward Dudlik
"Those who say it cannot be done
should not interrupt the person doing it."

wishy washy | www.amazon.com/o/registry/EGDXEBBWTYUU



----- Original Message -----
From: "Leif K-Brooks" <eurleif@buyer-brokerage.com>
To: <shiflett@php.net>
Cc: "Php-General (E-mail)" <php-general@lists.php.net>
Sent: Sunday, 19 October, 2003 01:18
Subject: Re: [php] Darken and lighten color?


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.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Reply With Quote
  #5 (permalink)  
Old 10-19-2003
Leif K-Brooks
 
Posts: n/a
Default Re: [PHP] Darken and lighten color?

Becoming Digital wrote:

>You just have to leave it at 255. That's what Illustrator does.
>
>

Hmm, seems to work, thanks. Note to self: try before you ask.

--
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.
Reply With Quote
  #6 (permalink)  
Old 10-19-2003
Becoming Digital
 
Posts: n/a
Default Re: [PHP] Darken and lighten color?

Leif K-Brooks wrote:
> Note to self: try before you ask.


I say that to myself about 100 times each day. ;)

Edward Dudlik
"Those who say it cannot be done
should not interrupt the person doing it."

wishy washy | www.amazon.com/o/registry/EGDXEBBWTYUU



----- Original Message -----
From: "Leif K-Brooks" <eurleif@buyer-brokerage.com>
To: "Becoming Digital" <subs@becomingdigital.com>
Cc: "Php-General (E-mail)" <php-general@lists.php.net>
Sent: Sunday, 19 October, 2003 01:42
Subject: Re: [php] Darken and lighten color?


Becoming Digital wrote:

>You just have to leave it at 255. That's what Illustrator does.
>
>

Hmm, seems to work, thanks. Note to self: try before you ask.

--
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.
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 08:29 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0