Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project!

## inkscape-devel

 [Inkscape-devel] Effect->Color->Brighter From: Tavmjong Bah - 2007-01-11 21:38:23 ```Hi, I am having trouble understanding the logic of the Color Brighter effect. The Color Darker effect is quite simple... it takes each RGB component and multiplies it by 0.9 resulting in moving the color 10% of the distance towards black. I would have thought that the Brighten effect would move a color 10% of the distance towards white. Instead it has logic that changes Black (0,0,0) to (10,10,10), any R, G, or B value less than 10 to 11, and any R, G, or B value greater than 10 gets divided by 0.9. This results in a greater change, the brighter the source color. A simple replacement for the current Brighter effect would be: r=int( (25.5 + 0.9 * r); g=int( (25.5 + 0.9 * g); b=int( (25.5 + 0.9 * b); One can see easily see that these equations have the right limits for what I would have expected. Tav ```
 Re: [Inkscape-devel] Effect->Color->Brighter From: bulia byak - 2007-01-12 00:51:52 ```On 1/11/07, Tavmjong Bah 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. -- bulia byak Inkscape. Draw Freely. http://www.inkscape.org ```
 Re: [Inkscape-devel] Effect->Color->Brighter From: Mason Thomas - 2007-01-15 05:48:20 ```On Thu, Jan 11, 2007 at 08:51:49PM -0400, bulia byak wrote: > On 1/11/07, Tavmjong Bah 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 ```