
## __init__ {#}

Initializes a new instance of the [`Color`](/html/python-net/aspose.html.drawing/color) class.
By default color is black.



```python
def __init__(self):
    ...
```




## __init__ {#float-float-float}

Initializes a new instance of the [`Color`](/html/python-net/aspose.html.drawing/color) class.
All color components must be in the range 0-1.



```python
def __init__(self, red, green, blue):
    ...
```


| Parameter | Type | Description |
| :- | :- | :- |
| red | float | The red component of the color. |
| green | float | The green component of the color. |
| blue | float | The blue component of the color. |


## __init__ {#byte-byte-byte}

Initializes a new instance of the [`Color`](/html/python-net/aspose.html.drawing/color) class.
All color components must be in the range 0-255.



```python
def __init__(self, red, green, blue):
    ...
```


| Parameter | Type | Description |
| :- | :- | :- |
| red | byte | The red component of the color. |
| green | byte | The green component of the color. |
| blue | byte | The blue component of the color. |


## __init__ {#int-int-int}

Initializes a new instance of the [`Color`](/html/python-net/aspose.html.drawing/color) class.
All color components must be in the range 0-255.



```python
def __init__(self, red, green, blue):
    ...
```


| Parameter | Type | Description |
| :- | :- | :- |
| red | int | The red component of the color. |
| green | int | The green component of the color. |
| blue | int | The blue component of the color. |


## __init__ {#float-float-float-float}

Initializes a new instance of the [`Color`](/html/python-net/aspose.html.drawing/color) class.
All color components must be in the range 0-1.



```python
def __init__(self, red, green, blue, alpha):
    ...
```


| Parameter | Type | Description |
| :- | :- | :- |
| red | float | The red component of the color. |
| green | float | The green component of the color. |
| blue | float | The blue component of the color. |
| alpha | float | The alpha component of the color. |


## __init__ {#byte-byte-byte-byte}

Initializes a new instance of the [`Color`](/html/python-net/aspose.html.drawing/color) class.
All color components must be in the range 0-255.



```python
def __init__(self, red, green, blue, alpha):
    ...
```


| Parameter | Type | Description |
| :- | :- | :- |
| red | byte | A byte that represents the red component of the color. |
| green | byte | A byte that represents the green component of the color. |
| blue | byte | A byte that represents the blue component of the color. |
| alpha | byte | A byte that represents the alpha component of the color. |


## __init__ {#int-int-int-int}

Initializes a new instance of the [`Color`](/html/python-net/aspose.html.drawing/color) class.
All color components must be in the range 0-255.



```python
def __init__(self, red, green, blue, alpha):
    ...
```


| Parameter | Type | Description |
| :- | :- | :- |
| red | int | The red component of the color. |
| green | int | The green component of the color. |
| blue | int | The blue component of the color. |
| alpha | int | The alpha component of the color. |



### See Also
* module [`aspose.html.drawing`](../../)
* class [`Color`](/html/python-net/aspose.html.drawing/color)
