from_rgb method
Contents
[
Hide
]from_rgb
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
class
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
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
class
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
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
class
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.svg.drawing
- class
Color