__init__ constructor
Leave feedback
On this page
Initializes a new Color instance.
def __init__(self, alpha, red, green, blue):
...
| Parameter | Type | Description |
|---|---|---|
| alpha | int |
The alpha component from 0 to 255. |
| red | int |
The red component from 0 to 255. |
| green | int |
The green component from 0 to 255. |
| blue | int |
The blue component from 0 to 255. |
Initializes a new instance of the Color class.
def __init__(self, red, green, blue):
...
| Parameter | Type | Description |
|---|---|---|
| red | int |
The red component from 0 to 255. |
| green | int |
The green component from 0 to 255. |
| blue | int |
The blue component from 0 to 255. |
- class
Color
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.