Initializing help system before first use

svgcolor

Purpose
Compute a composite color by combining amounts of red, green and blue.
Synopsis
function svgcolor(red, green, blue: integer): text
function svgcolor(red, green, blue: real): text
function svgcolor(red, green, blue: text): text
Arguments
red 
Amount of red (integer between 0 and 255, real between 0 and 1, or hexadecimal value between 0 and FF).
green 
Amount of green (integer between 0 and 255, real between 0 and 1, or hexadecimal value between 0 and FF).
blue 
Amount of blue (integer between 0 and 255, real between 0 and 1, or hexadecimal value between 0 and FF).
Return value
Hexadecimal representation of the composite color.
Example
The following definitions mix red with green and store the result in a variable. All three forms result in the same color.
declarations
  a_color: text
end-declarations

a_color:=svgcolor(255,255,0)
a_color:=svgcolor(1.0,1.0,0.0)
a_color:=svgcolor("FF","FF","0")
Further information
If the color component values are out of range, mmsvg will raise an I/O error.

© 2001-2025 Fair Isaac Corporation. All rights reserved. This documentation is the property of Fair Isaac Corporation (“FICO”). Receipt or possession of this documentation does not convey rights to disclose, reproduce, make derivative works, use, or allow others to use it except solely for internal evaluation purposes to determine whether to purchase a license to the software described in this documentation, or as otherwise set forth in a written software license agreement between you and FICO (or a FICO affiliate). Use of this documentation and the software described in it must conform strictly to the foregoing permitted uses, and no other use is permitted.