public final class ColorFilterCache extends Object
ColorFilter
s for a given color at different alpha levels.Modifier and Type | Method and Description |
---|---|
static ColorFilterCache |
getColorFilterCache(int color)
Get a ColorDimmer for a given color.
|
ColorFilter |
getFilterForLevel(float level)
Returns a ColorFilter for a given alpha level between 0 and 1.0.
|
public static ColorFilterCache getColorFilterCache(int color)
color
- The color to use for the color filters.public ColorFilter getFilterForLevel(float level)
level
- The alpha level the filter should apply.