r=$(echo "${rgb}" | cut -f 1 -d "," | tr -d " ")
g=$(echo "${rgb}" | cut -f 2 -d "," | tr -d " ")
b=$(echo "${rgb}" | cut -f 3 -d "," | tr -d " ")
r=$(echo "${rgb}" | cut -f 1 -d "," | tr -d " ")
g=$(echo "${rgb}" | cut -f 2 -d "," | tr -d " ")
b=$(echo "${rgb}" | cut -f 3 -d "," | tr -d " ")