RGB Converter
This commit is contained in:
parent
0fca0ea91d
commit
078fa47c4c
1 changed files with 1 additions and 1 deletions
|
@ -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))"
|
||||
|
|
Loading…
Reference in a new issue