void setAlpha(double alpha)

Source

void setAlpha(double alpha) {
  _activeAlpha = alpha;
  _renderingContext.globalAlpha = alpha;
}