Searched refs:swatches (Results 1 – 6 of 6) sorted by relevance
84 public static Palette from(@NonNull List<Swatch> swatches) { in from() argument85 return new Builder(swatches).generate(); in from()94 Palette(List<Swatch> swatches) { in Palette() argument95 mSwatches = swatches; in Palette()214 public Builder(@NonNull List<Swatch> swatches) { in Builder() argument215 if (swatches == null || swatches.isEmpty()) { in Builder()218 mSwatches = swatches; in Builder()321 List<Swatch> swatches; in generate() local351 swatches = mQuantizer.getQuantizedColors(); in generate()354 swatches = mSwatches; in generate()[all …]
46 List<Palette.Swatch> swatches = new ArrayList<>(); in quantize() local48 swatches.add(new Palette.Swatch(entry.getKey(), entry.getValue())); in quantize()50 mPalette = Palette.from(swatches); in quantize()
117 List<Palette.Swatch> swatches = new ArrayList<>(); in quantize() local121 swatches.add(new Palette.Swatch(colorInt, mClusterPopulations[i])); in quantize()123 mPalette = Palette.from(swatches); in quantize()
93 List<Palette.Swatch> swatches = new ArrayList<>(); in quantize() local95 swatches.add(new Palette.Swatch(color, 0)); in quantize()97 mPalette = Palette.from(swatches); in quantize()
234 final ArrayList<Palette.Swatch> swatches = new ArrayList<>(palette.getSwatches()); in fromBitmap() local235 swatches.sort((a, b) -> b.getPopulation() - a.getPopulation()); in fromBitmap()237 final int swatchesSize = swatches.size(); in fromBitmap()241 Palette.Swatch swatch = swatches.get(i); in fromBitmap()
977 final List<Palette.Swatch> swatches = mPalette.getSwatches(); in isGrayscale() local978 if (swatches != null) { in isGrayscale()979 for (int i = swatches.size() - 1; i >= 0; i--) { in isGrayscale()980 Palette.Swatch swatch = swatches.get(i); in isGrayscale()