diff options
Diffstat (limited to 'common/scripts/utils/hex2rgb.sh')
| -rwxr-xr-x | common/scripts/utils/hex2rgb.sh | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/common/scripts/utils/hex2rgb.sh b/common/scripts/utils/hex2rgb.sh new file mode 100755 index 0000000..a8ccc38 --- /dev/null +++ b/common/scripts/utils/hex2rgb.sh @@ -0,0 +1,3 @@ +#!/bin/bash +hex="${1}" +printf "R: %d G: %d B: %d\n" 0x"${hex:0:2}" 0x"${hex:2:2}" 0x"${hex:4:2}" |
