ad_color_to_hex (public)

 ad_color_to_hex triplet

Defined in packages/acs-tcl/tcl/widgets-procs.tcl

Converts a string of the form 0,192,255 to a string of the form #00C0FF.

Parameters:
triplet (required)

Partial Call Graph (max 5 caller/called nodes):
%3 test_ad_color_to_hex ad_color_to_hex (test acs-tcl) ad_color_to_hex ad_color_to_hex test_ad_color_to_hex->ad_color_to_hex

Testcases:
ad_color_to_hex
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 ""
    }
XQL Not present:
PostgreSQL, Oracle
Generic XQL file:
packages/acs-tcl/tcl/widgets-procs.xql

[ hide source ] | [ make this the default ]
Show another procedure: