コード例 #1
0
 def set_alpha(self, alpha):
     GraphicsContextBase.set_alpha(self, alpha)
     _alpha = self.get_alpha()
     _macosx.GraphicsContext.set_alpha(self, _alpha,
                                       self.get_forced_alpha())
     rgb = self.get_rgb()
     _macosx.GraphicsContext.set_foreground(self, rgb)
コード例 #2
0
 def set_alpha(self, alpha):
     GraphicsContextBase.set_alpha(self, alpha)
     _alpha = self.get_alpha()
     rgb = self._rgb
     if self.get_forced_alpha():
         self.ctx.set_source_rgba(rgb[0], rgb[1], rgb[2], _alpha)
     else:
         self.ctx.set_source_rgba(rgb[0], rgb[1], rgb[2], rgb[3])
コード例 #3
0
 def set_alpha(self, alpha):
     GraphicsContextBase.set_alpha(self, alpha)
     _alpha = self.get_alpha()
     rgb = self._rgb
     if self.get_forced_alpha():
         self.ctx.set_source_rgba(rgb[0], rgb[1], rgb[2], _alpha)
     else:
         self.ctx.set_source_rgba(rgb[0], rgb[1], rgb[2], rgb[3])
コード例 #4
0
ファイル: backend_macosx.py プロジェクト: AdamHeck/matplotlib
 def set_alpha(self, alpha):
     GraphicsContextBase.set_alpha(self, alpha)
     _alpha = self.get_alpha()
     _macosx.GraphicsContext.set_alpha(self, _alpha, self.get_forced_alpha())
     rgb = self.get_rgb()
     _macosx.GraphicsContext.set_foreground(self, rgb)
コード例 #5
0
ファイル: backend_macosx.py プロジェクト: astraw/matplotlib
 def set_alpha(self, alpha):
     GraphicsContextBase.set_alpha(self, alpha)
     _alpha = self.get_alpha()
     _macosx.GraphicsContext.set_alpha(self, _alpha)
コード例 #6
0
ファイル: backend_cairo.py プロジェクト: segasai/matplotlib
 def set_alpha(self, alpha):
     GraphicsContextBase.set_alpha(self, alpha)
     _alpha = self.get_alpha()
     rgb = self._rgb
     self.ctx.set_source_rgba(rgb[0], rgb[1], rgb[2], _alpha)
コード例 #7
0
 def set_alpha(self, alpha):
     GraphicsContextBase.set_alpha(self, alpha)
     _alpha = self.get_alpha()
     _macosx.GraphicsContext.set_alpha(self, _alpha)
コード例 #8
0
 def set_alpha(self, alpha):
     GraphicsContextBase.set_alpha(self, alpha)
     _alpha = self.get_alpha()
     rgb = self._rgb
     self.ctx.set_source_rgba (rgb[0], rgb[1], rgb[2], _alpha)