Skip to main content

hexToRgba

FitFileViewer - API Documentation v30.0.1


FitFileViewer - API Documentation / utils/charts/core/renderChartJS / hexToRgba

Function: hexToRgba()

hexToRgba(hex: string, alpha: number): string

Defined in: utils/charts/core/renderChartJS.ts:389

Converts a hex color token to an rgba string.

Parameters​

hex​

string

Hex color code.

alpha​

number

Alpha transparency value.

Returns​

string

RGBA color string.