Older Newer
Sun, 29 Dec 2019 15:32:03 . . . . SyneRyder [Formatting]


Changes by last author:

Added:
= Gval =

== Syntax ==

int Gval(int rgb)

== Arguments ==

:rgb

::Either a 32-bit RGB triple or a 32-bit RGBA quadruple; in either case, the red, green and blue channels are represented as eight bit values, as is the alpha channel in the RGBA form.

== Return ==

A value in the range 0 to 255 inclusive.

== Description ==

The return value represents the value of the green channel, extracted from the triple (or quadruple).

== Example ==

<code>

// Gives the green channel value

// from current foreground color

green = Gval(fgColor);

</code>

== See Also ==

Aval, Bval, Rval

== Comments ==

Everyone can add his comments about his experiences with this function here. Tips for using it are welcome, too.