Searched refs:swatches (Results 1 – 3 of 3) sorted by relevance
112 public static Palette from(List<Palette.Swatch> swatches) { in from() argument113 return new Palette.Builder(swatches).generate(); in from()158 Palette(List<Palette.Swatch> swatches, List<Target> targets) { in Palette() argument159 mSwatches = swatches; in Palette()642 public Builder(List<Palette.Swatch> swatches) { in Builder() argument643 if (swatches == null || swatches.isEmpty()) { in Builder()647 mSwatches = swatches; in Builder()809 List<Palette.Swatch> swatches; in generate() local847 swatches = mQuantizer.getQuantizedColors(); in generate()854 swatches = mSwatches; in generate()[all …]
177 final ArrayList<Palette.Swatch> swatches = new ArrayList<>(palette.getSwatches()); in fromBitmap() local179 swatches.removeIf(s -> s.getPopulation() < minColorArea); in fromBitmap()180 swatches.sort((a, b) -> b.getPopulation() - a.getPopulation()); in fromBitmap()182 final int swatchesSize = swatches.size(); in fromBitmap()187 Color color = Color.valueOf(swatches.get(i).getRgb()); in fromBitmap()
271 List<Palette.Swatch> swatches = palette.getSwatches(); in findBackgroundSwatch() local274 for (Palette.Swatch swatch: swatches) { in findBackgroundSwatch()