leanback/src/main/java/androidx/leanback/graphics/ColorOverlayDimmer.java
public int applyToColor(int color) {
        float f = 1 - mAlphaFloat;
        return Color.argb(Color.alpha(color),
                (int)(Color.red(color) * f),
                (int)(Color.green(color) * f),
                (int)(Color.blue(color) * f));
    }
/**
     * Change the RGB of the color according to current dim level. Maintains the
     * alpha value of the color.
     *
     * @param color The color to apply the dim level to.
     * @return A color with the RGB values adjusted by the alpha of the current
     *         dim level.
     */
Change the RGB of the color according to current dim level. Maintains the
alpha value of the color.

@param color The color to apply the dim level to.
@return A color with the RGB values adjusted by the alpha of the current
dim level.
Change the RGB of the color according to current dim level . Maintains the alpha value of the color . @param color The color to apply the dim level to . @return A color with the RGB values adjusted by the alpha of the current dim level .
public int applyToColor(int color) {
        float f = 1 - mAlphaFloat;
        return Color.argb(Color.alpha(color),
                (int)(Color.red(color) * f),
                (int)(Color.green(color) * f),
                (int)(Color.blue(color) * f));
    }
public int applyToColor ( int color ) { float f = 1 - mAlphaFloat ; return Color . argb ( Color . alpha ( color ) , ( int ) ( Color . red ( color ) * f ) , ( int ) ( Color . green ( color ) * f ) , ( int ) ( Color . blue ( color ) * f ) ) ; }
Change the RGB of the color according to current dim level.
Change the RGB of the color according to current dim level .