rgbToHsluv static method

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

HSLuv values are ranging in 0;360, 0;100 and 0;100 and RGB in 0;1. @param tuple An array containing the color's RGB coordinates. @return An array containing the resulting color's HSL coordinates in HSLuv color space.

Implementation

static List<double> rgbToHsluv(List<double> tuple) {
  return lchToHsluv(rgbToLch(tuple));
}