def set_color(self, t): if t == 'cu': t = 'smd' (r,g,b,a) = self.color_scheme.get(t, self.color_scheme['unknown']) self.color = svgfig.rgb(r,g,b) self.opacity = a
def dt_colors(wheel, station, sector): return rgb(0.1, 0.9, 0.)
def csc_colors(endcap, station, ring, chamber): return rgb(0.1, 0.9, 0.)