I am trying to change the color of the function swapFE() below and I can\'t figure out how to write it. I was told to change the color of the phrase node to the color value
dec2hex = function (d) { if (d > 15) { return d.toString(16) } else { return "0" + d.toString(16) } } rgb = function (r, g, b) { return "#" + dec2hex(r) + dec2hex(g) + dec2hex(b) };
and:
parent.childNodes[1].style.color = rgb(155, 102, 102);