Color
Represents a color in ARGB format.
from nutrient_sdk import ColorClass Methods
from_argb
@classmethoddef from_argb(cls, alpha: int, red: int, green: int, blue: int) -> ColorCreates a Color from ARGB components.
Parameters:
| Name | Type | Description |
|---|---|---|
alpha | int | Alpha component (0-255). |
red | int | Red component (0-255). |
green | int | Green component (0-255). |
blue | int | Blue component (0-255). |
Returns: Color - A new Color instance.
Methods
to_string
def to_string(self) -> strReturns a string representation of the color in “A, R, G, B” format.
Returns: str