Skip to content

Function: toColorCss()

ts
function toColorCss(c): string;

Defined in: gl/context.ts:44

Normalized RGBA (0..1) back to a CSS rgba(...) string.

Parameters

ParameterType
creadonly [number, number, number, number]

Returns

string

MIT licensed. WebGL2 required.