> Try to find the spots in the code having things like 'printf("#%2X%2X'
> in the awk code and change each of those "%2X" to "%02X", note the "0"
> which means "pad left with zeros".
yes, that's it.
COLOR=`echo "$RED:$GREEN:$BLUE" | \
awk -F: '{printf("#%02x%02x%02x", $1, $2, $3)}'`
Note: no eval, no '\n' needed.
Hamish