diff options
Diffstat (limited to 'src/Utils.ts')
-rw-r--r-- | src/Utils.ts | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/Utils.ts b/src/Utils.ts index 291d7c799..fb72a5836 100644 --- a/src/Utils.ts +++ b/src/Utils.ts @@ -179,6 +179,7 @@ export namespace Utils { export function toRGBAstr(col: { r: number; g: number; b: number; a?: number }) { return 'rgba(' + col.r + ',' + col.g + ',' + col.b + (col.a !== undefined ? ',' + col.a : '') + ')'; } + export function HSLtoRGB(h: number, s: number, l: number) { // Must be fractions of 1 |