code: private static void calculateRgb(GenericColor genericColor, Hue hue, double min, double chroma) {
  
      genericColor.chroma = new Chroma(chroma);
      double hueX = hue.getValue().doubleValue() / 60;
      double x = chroma * (1 - Math.abs((hueX % 2) - 1));
      double red, green, blue;
      if (hueX < 1) {
        red = chroma + min;
        green = x + min;
        blue = min;
      } else if (hueX < 2) {
        red = x + min;
        green = chroma + min;
        blue = min;
      } else if (hueX < 3) {
        red = min;
        green = chroma + min;
        blue = x + min;
      } else if (hueX < 4) {
        red = min;
        green = x + min;
        blue = chroma + min;
      } else if (hueX < 5) {
        red = x + min;
        green = min;
        blue = chroma + min;
      } else {
        red = chroma + min;
        green = min;
        blue = x + min;
      }
      genericColor.red = new Red(red);
      genericColor.green = new Green(green);
      genericColor.blue = new Blue(blue);
    }
docs: Calculates and the RGB values and sets them in the given {@link GenericColor}.
  
  @param genericColor is the {@link GenericColor} to complete.
  @param hue is the {@link Hue} value.
  @param min is the minimum {@link Factor} of R/G/B.
  @param chroma is the {@link Chroma} value.