int2hsv static method

List<double> int2hsv(
  1. int integer
)

Converts an integer to HSV values.

Returns a list of doubles representing the HSV values. h, s, v

Implementation

static List<double> int2hsv(int integer) {
  final List<int> rgb = int2rgb(integer);
  return rgb2hsv(rgb[0], rgb[1], rgb[2]);
}