rgb

The rgb function is used to combine individual reb, blue, and green color integers into a single numeric representation of the colors.

Category: Color


Syntax:
    rgb = rgb( color RedValue, color GreenValue, color BlueValue )


Description:

The rgb function returns a long representing the combined components of the red, green, and blue color values. Each of the color values is an integer ranging from 0 to 255 with 0 being the darkest implementation of the color and 255 being the lightest.


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