Searched refs:dominantSwatch (Results 1 – 1 of 1) sorted by relevance
175 Palette.Swatch dominantSwatch, int fallbackColor) { in selectForegroundColorForSwatches() argument181 if (dominantSwatch == coloredCandidate) { in selectForegroundColorForSwatches()183 } else if ((float) coloredCandidate.getPopulation() / dominantSwatch.getPopulation() in selectForegroundColorForSwatches()185 && dominantSwatch.getHsl()[1] > MIN_SATURATION_WHEN_DECIDING) { in selectForegroundColorForSwatches()186 return dominantSwatch.getRgb(); in selectForegroundColorForSwatches()190 } else if (hasEnoughPopulation(dominantSwatch)) { in selectForegroundColorForSwatches()191 return dominantSwatch.getRgb(); in selectForegroundColorForSwatches()262 Palette.Swatch dominantSwatch = palette.getDominantSwatch(); in findBackgroundSwatch() local263 if (dominantSwatch == null) { in findBackgroundSwatch()267 if (!isWhiteOrBlack(dominantSwatch.getHsl())) { in findBackgroundSwatch()[all …]