Color constructor
Contents
[
Hide
]init
Initializes a new instance of the Color
class.
By default color is black.
def __init__(self):
...
init
Initializes a new instance of the Color
class.
All color components must be in the range 0-1.
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
Initializes a new instance of the Color
class.
All color components must be in the range 0-255.
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
Initializes a new instance of the Color
class.
All color components must be in the range 0-255.
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
Initializes a new instance of the Color
class.
All color components must be in the range 0-1.
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
Initializes a new instance of the Color
class.
All color components must be in the range 0-255.
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
Initializes a new instance of the Color
class.
All color components must be in the range 0-255.
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.svg.drawing
- class
Color