Getting Started
User Guide
Reference
set_alpha
Return a color with the opacity channel set to the specified value.
color (color-spec) – The color. Sanitized with to_rgba.
to_rgba
alpha (float, optional) – The new opacity. Should be between 0 and 1.
0
1