public float getR()

in shared/java/ColorType.java [270:289]


    public float getR(int color) {
        switch (this) {
            case RGBA_8888:
                return ((color >> 24) & 0xFF) / 255f;
            case RGB_888X:
                return ((color >> 24) & 0xFF) / 255f;
            case BGRA_8888:
                return ((color >> 8) & 0xFF) / 255f;
            case RGBA_1010102:
                return ((color >> 22) & 0b1111111111) / 1023f;
            case RGB_101010X:
                return ((color >> 22) & 0b1111111111) / 1023f;
            case BGRA_1010102:
                return ((color >> 2) & 0b1111111111) / 1023f;
            case BGR_101010X:
                return ((color >> 2) & 0b1111111111) / 1023f;
            default:
                throw new IllegalArgumentException("getR(int) is not supported on ColorType." + this);
        }
    }