Initial Commit

This commit is contained in:
2026-01-15 21:52:12 +01:00
committed by erik
parent 3ed42cdeb6
commit 5a70f775f1
6702 changed files with 1389544 additions and 0 deletions

31
node_modules/color-space/hpluv.js generated vendored Normal file
View File

@@ -0,0 +1,31 @@
/**
* A uniform wrapper for hpluv.
* // http://www.hsluv.org/
*
* @module color-space/hpluv
*/
import xyz from './xyz.js';
import lchuv from './lchuv.js';
import { _hsluv } from './hsluv.js';
var hpluv = {
name: 'hpluv',
min: [0, 0, 0],
max: [360, 100, 100],
channel: ['hue', 'saturation', 'lightness'],
alias: ['HPLuv', 'HuSLp'],
lchuv: _hsluv.hpluvToLch,
xyz: function (arg) { return lchuv.xyz(_hsluv.hpluvToLch(arg)); },
//a shorter way to convert to husl
hsluv: function (arg) {
return _hsluv.lchToHsluv(_hsluv.hpluvToLch(arg));
}
};
export default hpluv;
//extend lchuv, xyz
lchuv.hpluv = _hsluv.lchToHpluv;
xyz.hpluv = function (arg) { return _hsluv.lchToHpluv(xyz.lchuv(arg)); };