rgbToLch static method

List<double> rgbToLch(
  1. List<double> tuple
)

RGB values are ranging in 0;1. @param tuple An array containing the color's RGB values. @return An array containing the resulting color's LCH coordinates.

Implementation

static List<double> rgbToLch(List<double> tuple) {
  return luvToLch(xyzToLuv(rgbToXyz(tuple)));
}