from_rgba method
Contents
[
Hide
]from_rgba
Returns a new Color with the requested ged, green, blue, alpha values. All color components must be in the range 0-255.
Returns
A new instance of the Color class
def from_rgba(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. | 
from_rgba
Returns a new Color with the requested ged, green, blue, alpha values. All color components must be in the range 0-255.
Returns
A new instance of the Color class
def from_rgba(self, red, green, blue, alpha):
    ...
| 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. | 
| alpha | int | A int that represents the alpha component of the color. | 
from_rgba
Returns a new Color with the requested ged, green, blue, alpha values. All color components must be in the range 0-1.
Returns
A new instance of the Color class
def from_rgba(self, red, green, blue, alpha):
    ...
| 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. | 
| alpha | float | A float that represents the alpha component of the color. | 
See Also
- module 
aspose.svg.drawing - class 
Color