UNPKG

@sequencemedia/css-purge

Version:

A CSS tool written in Node JS as a command line app or library for the purging, burning, reducing, shortening, compressing, cleaning, trimming and formatting of duplicate, extra, excess or bloated CSS.

9 lines (8 loc) 250 B
export default function hueToRgb (p, q, t) { if (t < 0) { t += 1 } if (t > 1) { t -= 1 } if (t < 1 / 6.0) { return p + (q - p) * 6 * t } if (t < 1 / 2.0) { return q } if (t < 2 / 3.0) { return p + (q - p) * (2 / 3.0 - t) * 6 } return p }