= 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 == == Comments == Everyone can add his comments about his experiences with this function here. Tips for using it are welcome, too. |