def sRGB(self, RGBlinear):
        """
        Back conversion from linear RGB to sRGB.
        """

        # initialize the sRGB array
        RGB = np.zeros((3,))

        #  calculate the sRGB values
        for i,value in enumerate(RGBlinear):
            value = float(value) / 100.

            if value > 0.00313080495356037152:
                value = (1.055 * np.power(value,1./2.4) ) - 0.055
            else :
                value = value * 12.92

            RGB[i] = round(value * 255.)
        return RGB
    #-
dataset/ETHPy150Open ethankruse/kepler_orrery/diverging_map.py/ColorMapCreator.sRGB/original