def to_css(self):
        if self.a == 1.0:
            return "rgb(%d, %d, %d)" % (self.r, self.g, self.b)
        else:
            return "rgba(%d, %d, %d, %s)" % (self.r, self.g, self.b, self.a)
dataset/ETHPy150Open bokeh/bokeh/bokeh/colors.py/RGB.to_css/original