clrGreenValue

The clrGreenValue function is used to extract the green color portion of an rgb color value.

Category: Color


Syntax:
    color = clrGreenValue( rgb ColorValue )


Description:

The clrGreenValue function returns an integer value from 0 to 255 representing the green component of the rgb ColorValue passed to the function as the parameter.


Platforms:
    Windows, DOS, Internet Active Pages


Example:
  rgbColor = rgb( 0, 128, 255 )
  
  blueColor = clrBlueValue( rgbColor )
  greenColor = clrGreenValue( rgbColor )
  redColor = clrRedValue( rgbColor )

  println( "r=" + redColor + " g=" + greenColor + " b=" + blueColor )
  
  // prints: r=0 g=128 b=255

  
(c) 2000-2001 by West Coast Web Adventures, Inc., All Rights Reserved