(c)
Convert from linear to sRGB color space.
    Source: Cycles addon implementation, node_color.h.
Convert from linear to sRGB color space.
    Source: Cycles addon implementation, node_color.h.
Convert from linear to sRGB color space . Source : Cycles addon implementation node_color . h .
def color_linear_to_srgb(c):
    """
    Convert from linear to sRGB color space.
    Source: Cycles addon implementation, node_color.h.
    """
    if c < 0.0031308:
        return 0.0 if c < 0.0 else c * 12.92
    else:
        return 1.055 * pow(c, 1.0 / 2.4) - 0.055
def color_linear_to_srgb ( c ) : if c < 0.0031308 : return 0.0 if c < 0.0 else c * 12.92 else : return 1.055 * pow ( c , 1.0 / 2.4 ) - 0.055