// This macro demonstrates how to use // the getValue("rgb.foreground") and // getValue("rgb.background") functions. fg = getValue("rgb.foreground"); show("forground", fg); bg = getValue("rgb.background"); show("background", bg); function show(label, color) { print(label+" color"); print(" hex: "+toHex(color)); red=(color>>16)&0xff; green=(color>>8)&0xff; blue=color&0xff; print(" rgb: "+red+","+green+","+blue); }