lchToLuv static method
@param tuple An array containing the color's L,C,H values. @return An array containing the resulting color's LUV coordinates.
Implementation
static List<double> lchToLuv(List<double> tuple) {
double L = tuple[0];
double C = tuple[1];
double H = tuple[2];
double hRad = H / 360.0 * 2 * math.pi;
double U = math.cos(hRad) * C;
double V = math.sin(hRad) * C;
return [L, U, V];
}