Represents a color in ARGB format.

from nutrient_sdk import Color

Class Methods

from_argb

@classmethod
def from_argb(cls, alpha: int, red: int, green: int, blue: int) -> Color

Creates a Color from ARGB components.

Parameters:

NameTypeDescription
alphaintAlpha component (0-255).
redintRed component (0-255).
greenintGreen component (0-255).
blueintBlue component (0-255).

Returns: Color - A new Color instance.


Methods

to_string

def to_string(self) -> str

Returns a string representation of the color in “A, R, G, B” format.

Returns: str