Searched refs:dominantSwatch (Results 1 – 1 of 1) sorted by relevance
181 Palette.Swatch dominantSwatch, int fallbackColor) { in selectForegroundColorForSwatches() argument187 if (dominantSwatch == coloredCandidate) { in selectForegroundColorForSwatches()189 } else if ((float) coloredCandidate.getPopulation() / dominantSwatch.getPopulation() in selectForegroundColorForSwatches()191 && dominantSwatch.getHsl()[1] > MIN_SATURATION_WHEN_DECIDING) { in selectForegroundColorForSwatches()192 return dominantSwatch.getRgb(); in selectForegroundColorForSwatches()196 } else if (hasEnoughPopulation(dominantSwatch)) { in selectForegroundColorForSwatches()197 return dominantSwatch.getRgb(); in selectForegroundColorForSwatches()269 Palette.Swatch dominantSwatch = palette.getDominantSwatch(); in findBackgroundSwatch() local270 if (dominantSwatch == null) { in findBackgroundSwatch()274 if (!isWhiteOrBlack(dominantSwatch.getHsl())) { in findBackgroundSwatch()[all …]