Palette.Filter
public interface Palette.Filter
A Filter provides a mechanism for exercising fine-grained control over which colors are valid within a resulting Palette.
Summary
Public methods |
|
|---|---|
abstract boolean |
Hook to allow clients to be able filter colors from resulting palette. |
Public methods
isAllowed
Added in 1.0.0
abstract boolean isAllowed(@ColorInt int rgb, @NonNull float[] hsl)
Hook to allow clients to be able filter colors from resulting palette.
| Parameters | |
|---|---|
@ColorInt int rgb |
the color in RGB888. |
@NonNull float[] hsl |
HSL representation of the color. |
| Returns | |
|---|---|
boolean |
true if the color is allowed, false if not. |
| See also | |
|---|---|
addFilter |