
## from_rgb {#byte-byte-byte}

Returns a new Color with the requested ged, green, blue values.
All color components must be in the range 0-255.


### Returns 


A new instance of the [`Color`](/html/python-net/aspose.html.drawing/color) class


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


| 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. |


## from_rgb {#int-int-int}

Returns a new Color with the requested ged, green, blue values.
All color components must be in the range 0-255.


### Returns 


A new instance of the [`Color`](/html/python-net/aspose.html.drawing/color) class


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

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


## from_rgb {#float-float-float}

Returns a new Color with the requested ged, green, blue values.
All color components must be in the range 0-1.


### Returns 


A new instance of the [`Color`](/html/python-net/aspose.html.drawing/color) class


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

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



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