from_other_with_alpha method
Leave feedback
On this page
Creates a new Argb32Color instance from the specified instance, but with a redefined alpha (opacity) value.
def from_other_with_alpha(cls, other, new_alpha):
...
| Parameter | Type | Description |
|---|---|---|
| other | Argb32Color |
Other Argb32Color instance from which the new one will be created. |
| new_alpha | int |
Re-defined alpha channel value (255 - fully opaque, 0 - fully transparent). |
Returns: Argb32Color: New Argb32Color instance.
Creates a new Argb32Color instance from a specified Rgb24Color, but with a specified alpha (opacity) value.
def from_other_with_alpha(cls, other, new_alpha):
...
| Parameter | Type | Description |
|---|---|---|
| other | Rgb24Color |
Other Rgb24Color instance, from which the new one will be created. |
| new_alpha | int |
Alpha channel value (255 - fully opaque, 0 - fully transparent). |
Returns: New Argb32Color instance.
- class
Argb32Color
Was this page helpful?
Any additional feedback you'd like to share with us?
Please tell us how we can improve this page.
Thank you for your feedback!
We value your opinion. Your feedback will help us improve our documentation.