Anyone know how to convert hexadecimal values into the ‘cubic polynomials’ needed by the colorPolynomial filter?
For instance I have a known color: #1B0800 (a dark brown)
and I want to apply that color to an image but have no idea how to represent that value as a cubic polynomial
Like this:
object.fill.effect.coefficients =
{
0, 0, 1, 0, --red coefficients
0, 0, 1, 0, --green coefficients
0, 1, 0, 0, --blue coefficients
0, 0, 0, 1 --alpha coefficients
}
Any help would be greatly appreciated!