code: public static GenericColor valueOf(Color color) {
  
      Objects.requireNonNull(color, "color");
      Red red = new Red(color.getRed());
      Green green = new Green(color.getGreen());
      Blue blue = new Blue(color.getBlue());
      Alpha alpha = new Alpha(color.getAlpha());
      return valueOf(red, green, blue, alpha);
    }
docs: Converts the given {@link Color} to a {@link GenericColor}.
  
  @param color is the discrete RGBA {@link Color}.
  @return the corresponding {@link GenericColor}.