Re: [Gimp-developer] green channel value in gimpviewrenderer.c



On Tue, Jun 7, 2016 at 1:54 PM, Elle Stone  wrote:
From curiosity, in this file
https://github.com/GNOME/gimp/blob/master/app/widgets/gimpviewrenderer.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?

Create a layer with a mask.

In the layers dialog you will see black outline around the layer
preview and white outline around mask preview.

Right-click, choose Show Layer Mask. The mask preview will get green outline.

Right-click, choose Disable Layer Mask. The mask preview will get red outline.

There you are.

Alex


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]