3👍
✅
return (‘rgba(r, g, b, a)’); will return text
'rgba(r, g, b, a)'
You should return something like
return ('rgba(' + r ', ' + g + ', ' + b + ', ' + a + ')';
Source:stackexchange.com