function main(input) {
    R = hexToR(input.text);
    G = hexToG(input.text);
    B = hexToB(input.text);

    input.text = R.toString().concat(',').
                   concat(G.toString()).concat(',').
                   concat(B.toString());
}
{
         "api":1,
         "name":"Hex to RGB",
         "description":"Convert color in hexadecimal to RGB.",
         "author":"Venkat",
         "icon":"color-wheel",
         "tags":"hex,color,rgb,convert"
     }