code: public static int[] toFixedHSV (float[] hsv, int[] fhsv)
      {
          if (fhsv == null) {
              fhsv = new int[hsv.length];
          }
          for (int ii = 0; ii < hsv.length; ii++) {
              // fhsv[i] = (int)(hsv[i]*Integer.MAX_VALUE);
              fhsv[ii] = (int)(hsv[ii]*Short.MAX_VALUE);
          }
          return fhsv;
      }
docs: Converts floating point HSV values to a fixed point integer representation.
  
  @param hsv the HSV values to be converted.
  @param fhsv the destination array into which the fixed values will be stored. If this is
  null, a new array will be created of the appropriate length.
  
  @return the <code>fhsv</code> parameter if it was non-null or the newly created target
  array.