Initializing help system before first use

svgcolor

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.