def RGBDimtoRGB(R, G, B, Dim):
    """ convert RGBDim to RGB color
    :warning: When Dim is 0, no more color component information encoded
    :warning: Prefer RGBDimtoHSV function
    :param R: red value (0;255)
    :param G: green value (0;255)
    :param B: blue value (0;255)
    :param Dim: brightness value (0.0;100) -> can be specified over 100% if needed (beware of saturation)
    :return: RGB tuple (0;255) """
    bright = Dim / 100.0
    return tuple(int(i * bright) for i in (R, G, B))