ad_color_to_hex

one of the documented procedures in this installation of the ACS
Usage:
ad_color_to_hex   triplet
What it does:
Converts a string of the form 0,192,255 to a string of the form #00C0FF.
Defined in: /web/philip/packages/acs-core/widgets-procs.tcl

Source code:


    if { [regexp {^([0-9]+),([0-9]+),([0-9]+)$} $triplet all r g b] } {
	return "#[format "%02x%02x%02x" $r $g $b]"
    } else {
	return ""
    }


philg@mit.edu