// PaintWithAlpha is a wrapper around cairo_paint_with_alpha(). func (v *Context) PaintWithAlpha(alpha float64) { C.cairo_paint_with_alpha(v.native(), C.double(alpha)) }
func (self *Surface) PaintWithAlpha(alpha float64) { C.cairo_paint_with_alpha(self.context, C.double(alpha)) }
//PaintAlpha paints the current source everywhere within the current clip //region, using a mask of constant alpha value alpha. // //The effect is similar to Paint, but the drawing is faded out using //the alpha value. // //originally cairo_paint. func (c *Context) PaintAlpha(alpha float64) *Context { C.cairo_paint_with_alpha(c.c, C.double(alpha)) return c }