hsv_to_rgb: use H modulo 360