tools/style_variable_generator/proto_generator.py
def _ProtoColor(self, c):
        '''Returns the proto color representation of |c|'''
        assert (isinstance(c, Color))

        def AlphaToInt(alpha):
            return int(alpha * 255)

        return '0x%X%02X%02X%02X' % (AlphaToInt(c.opacity.a), c.r, c.g, c.b)
Returns the proto color representation of |c|
Returns the proto color representation of |c|
Returns the proto color representation of |c|
def _ProtoColor(self, c):
        assert (isinstance(c, Color))
        def AlphaToInt(alpha):
            return int(alpha * 255)
        return '0x%X%02X%02X%02X' % (AlphaToInt(c.opacity.a), c.r, c.g, c.b)
def _ProtoColor ( self , c ) : assert ( isinstance ( c , Color ) ) def AlphaToInt ( alpha ) : return int ( alpha * 255 ) return '0x%X%02X%02X%02X' % ( AlphaToInt ( c . opacity . a ) , c . r , c . g , c . b )
Returns the proto color representation of |c|
Returns the proto color representation of |c|
'''Returns the proto color representation of |c|'''
self
c