UNPKG

libdom

Version:

Lean Browser Library for typical DOM operations

23 lines (18 loc) 384 B
'use strict'; import { itemize, toArray, toInteger } from "./hsla.js"; export function toString(integer) { var values = toArray(integer).slice(0, 3); values[1] += '%'; values[2] += '%'; return 'hsl(' + values.join(',') + ')'; } export { itemize, toArray, toInteger };