Skip to main content

Function: rgbaToColor()

rgbaToColor(rgba): string

Defined in: src/utils/color.ts:143

Convert an [r, g, b, a] float array to a color (hex string).

Ports rgba_to_color. The alpha is dropped, matching ManimColor.to_hex with its default with_alpha=False.

Parameters​

rgba​

Rgba

Returns​

string