Sets all a(lpha) field of the rgba attribute to be @alpha
    for @node and all subnodes
    used for managing display
326858
def set_alpha(node, alpha=0.1):
    
    for child_node in node.findall(".//*[@rgba]"):
        rgba_orig = string_to_array(child_node.get("rgba"))
        child_node.set("rgba", array_to_string(list(rgba_orig[0:3]) + [alpha]))
1096388
public void setClearColor (float red, float green, float blue, float alpha) {
    cred = red; cgreen = green; cblue = blue; calpha = alpha;
  }
248446
@TargetApi(11)
    public void setStatusBarAlpha(float alpha) {
        if (mStatusBarAvailable && Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB) {
            mStatusBarTintView.setAlpha(alpha);
        }
    }
235639
function(node, children, lpad) {
    var childLpad = lpad + 2;
    
    for (var i=0; i < children.length; i++) {
      var child = children[i];
      if (child instanceof Array) {
        var nestedChildren = child;
        this.renderChildren(node, nestedChildren, lpad)
      } else {
        node.push(child.render(childLpad));
      }
    }    
  }
706385
def _change_sel_color(self, event):
        """"""
        (r, g, b), (h, s, v), color = self.square.get()
        self.red.set(r)
        self.green.set(g)
        self.blue.set(b)
        self.saturation.set(s)
        self.value.set(v)
        self.hexa.delete(0, "end")
        self.hexa.insert(0, color.upper())
        if self.alpha_channel:
            self.alphabar.set_color((r, g, b))
            self.hexa.insert('end',
                             ("%2.2x" % self.alpha.get()).upper())
        self._update_preview()
446503
private static int setColorAlpha(int color, byte alpha) {
    return Color.argb(alpha, Color.red(color), Color.green(color), Color.blue(color));
  }
1371161
public static void setAlpha(final Actor actor, final float alpha) {
        if (actor != null) {
            actor.getColor().a = alpha;
        }
    }
409447
def _rgba(r, g, b, a, **kwargs):
    
    return ColorValue((float(r), float(g), float(b), float(a)))
41158
def _color_attr(self, ground, attr):
        
        attr = colors[ground][attr] 
        attrs = self.cursor_attributes
        if ground == "foreground":
            self.cursor_attributes = (attrs[0], attr, attrs[2])
        elif ground == "background":
            self.cursor_attributes = (attrs[0], attrs[1], attr)
1296732
def SetAlpha(self, alpha):
        '''
        
        '''
        self._AlphaChannel = alpha
        self.TKroot.attributes('-alpha', alpha)
298906
function updateFieldColorBuffer(lut, fieldData, buf) {
  // var buf = new Float32Array(fieldData.length * 3);
  for (let i = 0; i < fieldData.length; ++i) {
    const idx = i * 3,
      color = lut.getColor(fieldData[i]);
    buf[idx] = color[0];
    buf[idx + 1] = color[1];
    buf[idx + 2] = color[2];
  }
  return buf;
}
351333
def BrushForNode( self, node, depth=0 ):
        """"""
        if node == self.selectedNode:
            color = wx.SystemSettings_GetColour(wx.SYS_COLOUR_HIGHLIGHT)
        elif node == self.highlightedNode:
            color = wx.Colour( red=0, green=255, blue=0 )
        else:
            color = self.adapter.background_color(node, depth)
            if not color:
                red = (depth * 10)%255
                green = 255-((depth * 5)%255)
                blue = (depth * 25)%255
                color = wx.Colour( red, green, blue )
        return wx.Brush( color  )
995677
def rgba(self, val):
        """"""
        # Note: all other attribute sets get routed here!
        # This method is meant to do the heavy lifting of setting data
        rgba = _user_to_rgba(val, expand=False)
        if self._rgba is None:
            self._rgba = rgba  # only on init
        else:
            self._rgba[:, :rgba.shape[1]] = rgba
678243
def SetAlpha(self, alpha):
        '''
        
        '''
        self._AlphaChannel = alpha * 255
        if self._AlphaChannel is not None:
            self.MasterFrame.SetTransparent(self._AlphaChannel)
697605
def set_map_alpha(alpha):
    
    if alpha < 0 or alpha > 255:
        raise Exception('invalid alpha '  + str(alpha))
    _global_config.map_alpha = alpha
31845
def add_color(node, key = nil)
      key ||= node.expr.to_s

      self.colors[key] ||= { :variables => [], :alternate_values => [] }
      self.colors[key][:variables] << node.name

      self.colors[key][:alternate_values] |= ([node.expr.to_sass, node.expr.inspect] - [key])
    end
37666
function renderAttributes(ns, node, attrs) {
  let map = ATTRIBUTE_MAP[ns] || {};
  keys(map).forEach(key => {
    let attrKey = map[key];
    if(key in attrs) {
      node.setAttribute(attrKey, attrs[key]);
    }
  });
}