you’re assigning to the variable “color” a 1 dimension value… and you’re passing that out to “rgbToHsl”
It should be something like
convert = rgbToHsl([color,0,0,0]) – [0, 0, 0, change];
or
convert = rgbToHsl([something,something,something,color]) – [0, 0, 0, change];
I’m not sure what should go what to give the desired effect…
but that’s your error there.