Converts HSV values to an integer.
static int hsv2int(int h, double s, double v) { final List<int> rgb = hsv2rgb(h, s, v); return rgb2int(rgb[0], rgb[1], rgb[2]); }