color2hsv static method

List<double> color2hsv(
  1. Color color
)

Converts a Flutter Color object to HSV values.

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

Implementation

static List<double> color2hsv(Color color) {
  final List<int> rgb = color2rgb(color);
  return rgb2hsv(rgb[0], rgb[1], rgb[2]);
}