ColorFinderRgb extends AbstractColorFinder { @Override protected void findColors() { LOGGER.debug("findColors of ColorFinderRgb"); Color colorToModify = getColorResult().getSubmittedCombinaisonColor().getColor(); if (threasholdVariator != null) { float gap = getColorResult().getSubmittedCombinaisonColor().getGap(); updateBoundersFromGap(gap); } testedColors = 0; changeRed(colorToModify, false); changeRed(colorToModify, true); getColorResult().setNumberOfTestedColors(testedColors); LOGGER.debug("Size of Color list : " + getColorResult().getSuggestedColors().size()); } ColorFinderRgb(); void setThreasholdVariator(Map<Integer, Boundary> threasholdVariator); void setMaxMove(int maxMove); void setMaxCoefficient(float maxCoefficient); void setHueBounder(float hueBounder); @Override String getColorFinderKey();  }
@Test public void testFindColorsNearColorOrange() { System.out.println("FindColorsNearColor"); Color foregroundColor = new Color(255, 255, 255); Color backgroundColor = new Color(255, 192, 7); Float coefficientLevel = 3.0f; ColorFinderRgb instance = new ColorFinderRgb(); List<ColorCombinaison> colorCombinaison = new ArrayList<ColorCombinaison>(); instance.findColors(foregroundColor, backgroundColor, true, coefficientLevel); LOGGER.info("nb SuggestedColors: " + instance.getColorResult().getSuggestedColors().size()); for (ColorCombinaison combinaisons : instance.getColorResult().getSuggestedColors()) { LOGGER.info("Color found " + combinaisons.getHexaColor()); } }