Java Utililty Methods Color Multiply

List of utility methods to do Color Multiply

Description

The list of methods to do Color Multiply are organized into topic(s).

Method

doublemultiply(double color1, double color2)
multiply
long argb1 = Double.doubleToRawLongBits(color1);
long r1 = ((argb1 >> 32) & 0xFFFF);
long g1 = ((argb1 >> 16) & 0xFFFF);
long b1 = ((argb1) & 0xFFFF);
long argb2 = Double.doubleToRawLongBits(color2);
long r2 = ((argb2 >> 32) & 0xFFFF);
long g2 = ((argb2 >> 16) & 0xFFFF);
long b2 = ((argb2) & 0xFFFF);
...
intmultiply(int colorA, int colorB)
multiply
return makeColor(getAlphaF(colorA), getRedF(colorA) * getRedF(colorB),
        getGreenF(colorA) * getGreenF(colorB), getBlueF(colorA) * getBlueF(colorB));
intmultiplyColor(int p_180188_0_, int p_180188_1_)
multiply Color
int i = (p_180188_0_ & 16711680) >> 16;
int j = (p_180188_1_ & 16711680) >> 16;
int k = (p_180188_0_ & 65280) >> 8;
int l = (p_180188_1_ & 65280) >> 8;
int i1 = (p_180188_0_ & 255) >> 0;
int j1 = (p_180188_1_ & 255) >> 0;
int k1 = (int) ((float) i * (float) j / 255.0F);
int l1 = (int) ((float) k * (float) l / 255.0F);
...
intmultiplyColor(int src, int dst)
multiply Color
int out = 0;
for (int i = 0; i < 32; i += 8) {
    out |= ((((src >> i) & 0xFF) * ((dst >> i) & 0xFF) / 0xFF) & 0xFF) << i;
return out;
intmultiplyColorComponents(int color, float brightnessFactor)
Individually multiply R, G, B color components by scalar value to dim or brighten the color.
return ((int) (brightnessFactor * (color & MASKR)) & MASKR)
        | ((int) (brightnessFactor * (color & MASKG)) & MASKG)
        | ((int) (brightnessFactor * (color & MASKB)) & MASKB);