pKa/analyse_pKa_values.py
def colour_2_hex(self,color):
        """Converts a color RGB tuple to a hex color"""
        r=hex(color[0]).replace('L','')
        g=hex(color[1]).replace('L','')
        b=hex(color[2]).replace('L','')
        return '#%s%s%s' %(r.split('x')[1].zfill(2),g.split('x')[1].zfill(2),b.split('x')[1].zfill(2))
Converts a color RGB tuple to a hex color
Converts a color RGB tuple to a hex color
Converts a color RGB tuple to a hex color
def colour_2_hex(self,color):
        r=hex(color[0]).replace('L','')
        g=hex(color[1]).replace('L','')
        b=hex(color[2]).replace('L','')
        return '#%s%s%s' %(r.split('x')[1].zfill(2),g.split('x')[1].zfill(2),b.split('x')[1].zfill(2))
def colour_2_hex ( self , color ) : r = hex ( color [ 0 ] ) . replace ( 'L' , '' ) g = hex ( color [ 1 ] ) . replace ( 'L' , '' ) b = hex ( color [ 2 ] ) . replace ( 'L' , '' ) return '#%s%s%s' % ( r . split ( 'x' ) [ 1 ] . zfill ( 2 ) , g . split ( 'x' ) [ 1 ] . zfill ( 2 ) , b . split ( 'x' ) [ 1 ] . zfill ( 2 ) )
Converts a color RGB tuple to a hex color
Converts a color RGB tuple to a hex color
"""Converts a color RGB tuple to a hex color"""
self
color