tools/style_variable_generator/css_generator.py
def CSSColorRGB(self, c):
        '''Returns the CSS rgb representation of |c|'''
        if c.var:
            return 'var(%s-rgb)' % self.ToCSSVarName(c.var)

        if c.rgb_var:
            return 'var(%s-rgb)' % self.ToCSSVarName(c.RGBVarToVar())

        return '%d, %d, %d' % (c.r, c.g, c.b)
Returns the CSS rgb representation of |c|
Returns the CSS rgb representation of |c|
Returns the CSS rgb representation of |c|
def CSSColorRGB(self, c):
        if c.var:
            return 'var(%s-rgb)' % self.ToCSSVarName(c.var)
        if c.rgb_var:
            return 'var(%s-rgb)' % self.ToCSSVarName(c.RGBVarToVar())
        return '%d, %d, %d' % (c.r, c.g, c.b)
def CSSColorRGB ( self , c ) : if c . var : return 'var(%s-rgb)' % self . ToCSSVarName ( c . var ) if c . rgb_var : return 'var(%s-rgb)' % self . ToCSSVarName ( c . RGBVarToVar ( ) ) return '%d, %d, %d' % ( c . r , c . g , c . b )
Returns the CSS rgb representation of |c|
Returns the CSS rgb representation of |c|
'''Returns the CSS rgb representation of |c|'''
self
c