Context.paintWithAlpha

void paintWithAlpha(double alpha)

A drawing operator that paints the current source everywhere within the current clip region using a mask of constant alpha value alpha. The effect is similar to [cairo.context.Context.paint], but the drawing is faded out using the alpha value.

Parameters

alphaalpha value, between 0 (transparent) and 1 (opaque)