Searched refs:coloredCandidate (Results 1 – 1 of 1) sorted by relevance
176 Palette.Swatch coloredCandidate = selectVibrantCandidate(moreVibrant, vibrant); in selectForegroundColorForSwatches() local177 if (coloredCandidate == null) { in selectForegroundColorForSwatches()178 coloredCandidate = selectMutedCandidate(mutedSwatch, moreMutedSwatch); in selectForegroundColorForSwatches()180 if (coloredCandidate != null) { in selectForegroundColorForSwatches()181 if (dominantSwatch == coloredCandidate) { in selectForegroundColorForSwatches()182 return coloredCandidate.getRgb(); in selectForegroundColorForSwatches()183 } else if ((float) coloredCandidate.getPopulation() / dominantSwatch.getPopulation() in selectForegroundColorForSwatches()188 return coloredCandidate.getRgb(); in selectForegroundColorForSwatches()