from_rgb method
from_rgb(r, g, b)
Creates an opaque color (alpha is 255) from the specified red, green and blue values.
Returns
The color created from the specified values.
@staticmethod
def from_rgb(r, g, b):
...
| Parameter | Type | Description |
|---|---|---|
| r | int | The red component value. Valid values are 0 through 255. |
| g | int | The green component value. Valid values are 0 through 255. |
| b | int | The blue component value. Valid values are 0 through 255. |
Exceptions
| Exception | Description |
|---|---|
| ValueError | A component value is less than 0 or greater than 255. |
See Also
- class
Color - module
aspose.slides - library
Aspose.Slides