RGB Converter

This commit is contained in:
Juergen Jung 2017-03-02 20:41:34 +01:00
parent 0fca0ea91d
commit 078fa47c4c
1 changed files with 1 additions and 1 deletions

View File

@ -23,7 +23,7 @@ To convert RGB value use the following bash code:
```shell
function rgbToColor {
echo $(( $(($1<<16)) + $(($2<<8)) + $(($3)) ));
}
}
function colorToRGB {
echo "Red: $(($1>>16&0xff))"