public interface

Palette.Filter

 androidx.palette.graphics.Palette.Filter

Overview

A Filter provides a mechanism for exercising fine-grained control over which colors are valid within a resulting Palette.

Summary

Methods
public booleanisAllowed(int rgb, float[] hsl[])

Hook to allow clients to be able filter colors from resulting palette.

Methods

public boolean isAllowed(int rgb, float[] hsl[])

Hook to allow clients to be able filter colors from resulting palette.

Parameters:

rgb: the color in RGB888.
hsl: HSL representation of the color.

Returns:

true if the color is allowed, false if not.

See also: Palette.Builder