src/main/java/dev/lambdaurora/spruceui/util/ColorUtil.java
public static int argbMultiply(int a, int b) {
        float aRed = floatColor(argbUnpackRed(a));
        float aGreen = floatColor(argbUnpackGreen(a));
        float aBlue = floatColor(argbUnpackBlue(a));
        float aAlpha = floatColor(argbUnpackAlpha(a));

        float bRed = floatColor(argbUnpackRed(b));
        float bGreen = floatColor(argbUnpackGreen(b));
        float bBlue = floatColor(argbUnpackBlue(b));
        float bAlpha = floatColor(argbUnpackAlpha(b));

        return packARGBColor(
                intColor(aRed * bRed),
                intColor(aGreen * bGreen),
                intColor(aBlue * bBlue),
                intColor(aAlpha * bAlpha)
        );
    }
/**
     * Multiples two ARGB color.
     *
     * @param a an ARGB color
     * @param b an ARGB color
     * @return the multiplied color
     */
Multiples two ARGB color.
@param a an ARGB color
@param b an ARGB color
@return the multiplied color
Multiples two ARGB color . @param a an ARGB color @param b an ARGB color @return the multiplied color
public static int argbMultiply(int a, int b) {
        float aRed = floatColor(argbUnpackRed(a));
        float aGreen = floatColor(argbUnpackGreen(a));
        float aBlue = floatColor(argbUnpackBlue(a));
        float aAlpha = floatColor(argbUnpackAlpha(a));
        float bRed = floatColor(argbUnpackRed(b));
        float bGreen = floatColor(argbUnpackGreen(b));
        float bBlue = floatColor(argbUnpackBlue(b));
        float bAlpha = floatColor(argbUnpackAlpha(b));
        return packARGBColor(
                intColor(aRed * bRed),
                intColor(aGreen * bGreen),
                intColor(aBlue * bBlue),
                intColor(aAlpha * bAlpha)
        );
    }
public static int argbMultiply ( int a , int b ) { float aRed = floatColor ( argbUnpackRed ( a ) ) ; float aGreen = floatColor ( argbUnpackGreen ( a ) ) ; float aBlue = floatColor ( argbUnpackBlue ( a ) ) ; float aAlpha = floatColor ( argbUnpackAlpha ( a ) ) ; float bRed = floatColor ( argbUnpackRed ( b ) ) ; float bGreen = floatColor ( argbUnpackGreen ( b ) ) ; float bBlue = floatColor ( argbUnpackBlue ( b ) ) ; float bAlpha = floatColor ( argbUnpackAlpha ( b ) ) ; return packARGBColor ( intColor ( aRed * bRed ) , intColor ( aGreen * bGreen ) , intColor ( aBlue * bBlue ) , intColor ( aAlpha * bAlpha ) ) ; }
Multiples two ARGB color.
Multiples two ARGB color .