Re: [Gimp-developer] green channel value in gimpviewrenderer.c
- From: Michael Natterer <mitch gimp org>
- To: Elle Stone <ellestone ninedegreesbelow com>, Gimp-developer <gimp-developer-list gnome org>
- Subject: Re: [Gimp-developer] green channel value in gimpviewrenderer.c
- Date: Tue, 07 Jun 2016 13:00:38 +0200
On Tue, 2016-06-07 at 06:54 -0400, Elle Stone wrote:
 From curiosity, in this fileÂ
https://github.com/GNOME/gimp/blob/master/app/widgets/gimpviewrendere
r.c, onÂ
line 160:
gimp_rgba_set (&green_color, 0.0, 0.94, 0.0, GIMP_OPACITY_OPAQUE);
Why is the green channel value for "&green_color" set to 0.94 ratherÂ
than 1.0? Does this affect anything during editing? Or is this just
aÂ
random default value?
The channel values for the other colors in the list are either 0.0 or
1.0.
Also, what are the functions in this file for? Why is the blue
channelÂ
not used, but rather only the red and green channel?
These are just GUI colors, used for colored frames around
previews, like in layer/mask active/visible/disabled.
0.94 probably looked better than pure green, this is
unrelated to any image pixels.
Regards,
Mitch
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]