Default callback for set_color
542399
def resp_set_light(self, resp, color=None):
        
        if color:
            self.color=color
        elif resp:
            self.power_level = resp.power_level
            self.color = resp.color
            self.label = resp.label.decode().replace("\x00", "")
1198786
def set_color(self, light_id, hex_value, brightness=None):
        '''
        
        '''
        light = self.get_light(light_id)

        xy = get_xy_from_hex(hex_value)
        data = {
            'xy': [xy.x, xy.y],
        }

        if brightness is not None:
            data['bri'] = brightness

        return self.set_state(light.light_id, **data)
58904
def SetColor(self, color):
        
        self.SetFillColor(color)
        self.SetLineColor(color)
        self.SetMarkerColor(color)
393728
def console_set_key_color(
    con: tcod.console.Console, col: Tuple[int, int, int]
) -> None:
    
    lib.TCOD_console_set_key_color(_console(con), col)
    if hasattr(con, "set_key_color"):
        con.set_key_color(col)
568558
def setColor(self, color, key=None):
        
        self._color = QColor(color)
        if key is not None:
            self._colorMap[nativestring(key)] = self._color
310896
function setColor(color) {
         var alpha = this.currentColor.glArray[3];
         this.currentColor.copy(color);
         this.currentColor.glArray[3] *= alpha;
       }
983265
def setOverlayColor(self, ulOverlayHandle, fRed, fGreen, fBlue):
        """"""

        fn = self.function_table.setOverlayColor
        result = fn(ulOverlayHandle, fRed, fGreen, fBlue)
        return result
1241636
def OnTextColor(self, event):
        """"""

        color = event.GetValue().GetRGB()

        post_command_event(self, self.TextColorMsg, color=color)
268991
def set_color(fg=None, bg=None):
    
    if fg or bg:
        _color_manager.set_color(fg, bg)
    else:
        _color_manager.set_defaults()
994117
public void setColor(int color, boolean callback) {

    int alpha = Color.alpha(color);
    int red = Color.red(color);
    int blue = Color.blue(color);
    int green = Color.green(color);

    float[] hsv = new float[3];

    Color.RGBToHSV(red, green, blue, hsv);

    this.alpha = alpha;
    hue = hsv[0];
    sat = hsv[1];
    val = hsv[2];

    if (callback && onColorChangedListener != null) {
      onColorChangedListener.onColorChanged(Color.HSVToColor(this.alpha, new float[] { hue, sat, val }));
    }

    invalidate();
  }
280935
def _setColors(self, colors, doc, xref):
        """"""
        return _fitz.Link__setColors(self, colors, doc, xref)
466180
public void setOnColor(final ColorDef ON_COLOR) {
        onColor = ON_COLOR;
        init(getInnerBounds().width, getInnerBounds().height);
        repaint(getInnerBounds());
    }
1016083
def setColor(self, color):
        ''''''
        if color == 'blue':
            self.color = 'blue'
            self.colorCode = self.colors['blue']
            self.colorCodeDark = self.colors['dblue']
        elif color == 'red':
            self.color = 'red'
            self.colorCode = self.colors['red']
            self.colorCodeDark = self.colors['dred']
        elif color == 'yellow':
            self.color = 'yellow'
            self.colorCode = self.colors['yellow']
            self.colorCodeDark = self.colors['dyellow']
        elif color == 'green':
            self.color = 'green'
            self.colorCode = self.colors['green']
            self.colorCodeDark = self.colors['dgreen']
        elif color == 'wild':  # No color modification
            self.wild = True
            self.color = 'wild'
            self.colorCodeDark = self.colors['dwild']
            self.colorCode = self.colors['wild']
315275
def set_bgcolor(self, color):
        """"""
        self.bgcolor = color
        for ax in self.canvas.figure.get_axes():
            if matplotlib.__version__ < '2.0':
                ax.set_axis_bgcolor(color)
            else:
                ax.set_facecolor(color)
        if callable(self.theme_color_callback):
            self.theme_color_callback(color, 'bg')
657575
def resolve_colors(self, colorstack):
        ''
        attr = CursesAttr()
        for coloropt in colorstack:
            c = self.get_color(coloropt)
            attr = attr.update_attr(c)
        return attr
316312
function _setColourOption (key, val) {
  if (is.object(val) || is.string(val)) {
    const colour = color(val);
    this.options[key] = [
      colour.red(),
      colour.green(),
      colour.blue(),
      Math.round(colour.alpha() * 255)
    ];
  }
}
860006
def OnCellBackgroundColor(self, event):
        """"""

        with undo.group(_("Background color")):
            self.grid.actions.set_attr("bgcolor", event.color)

        self.grid.ForceRefresh()

        self.grid.update_attribute_toolbar()

        event.Skip()