15 Jan
2007
15 Jan
'07
5:35 a.m.
On Thu, Jan 11, 2007 at 08:51:49PM -0400, bulia byak wrote:
On 1/11/07, Tavmjong Bah <tavmjong@...8...> wrote:
I would have thought that the Brighten effect would move a color 10% of the distance towards white.
But then:
any R, G, or B value greater than 10 gets divided by 0.9
isn't it the same thing?
r=int( (25.5 + 0.9 * r); g=int( (25.5 + 0.9 * g); b=int( (25.5 + 0.9 * b);
The Brighter is supposed to be the inverse of Darker. If Darker multiplies by 0.9, Brighter divides by the same 0.9. Seems logical to me.
If the darkest value is 0, then multiplying by 0.9 (darken) will gradually approach 0. "Brightening" by dividing by 0.9 will gradually approach infinity. But if the lightest value is 255, you will exceed this.
-Mason