'use strict';var chunkBBEOVRYB_cjs=require('../chunk-BBEOVRYB.cjs');require('../chunk-X5FCFNQN.cjs'),require('../chunk-GYCEEHZT.cjs');var chunkEXPXWBLP_cjs=require('../chunk-EXPXWBLP.cjs');var b=n=>{n.prototype.mix=function(r,e=.5){let t=new n(r).toRgb(),l=this._rawRgb(),o=chunkEXPXWBLP_cjs.a(e,0,1);return new n({r:chunkEXPXWBLP_cjs.b(l.r*(1-o)+t.r*o),g:chunkEXPXWBLP_cjs.b(l.g*(1-o)+t.g*o),b:chunkEXPXWBLP_cjs.b(l.b*(1-o)+t.b*o),alpha:chunkEXPXWBLP_cjs.b(l.alpha*(1-o)+t.alpha*o,3)})},n.prototype.mixOklab=function(r,e=.5){let t=chunkBBEOVRYB_cjs.b(this._rawRgb()),l=chunkBBEOVRYB_cjs.b(new n(r)._rawRgb()),o=chunkEXPXWBLP_cjs.a(e,0,1);return new n(chunkBBEOVRYB_cjs.d({l:t.l*(1-o)+l.l*o,a:t.a*(1-o)+l.a*o,b:t.b*(1-o)+l.b*o,alpha:chunkEXPXWBLP_cjs.b(t.alpha*(1-o)+l.alpha*o,3)}))};let p=(r,e,t)=>e<=0?[]:e===1?[r]:Array.from({length:e},(l,o)=>r.mix(t,o/(e-1)));n.prototype.tints=function(r=5){return p(this,r,"#ffffff")},n.prototype.shades=function(r=5){return p(this,r,"#000000")},n.prototype.tones=function(r=5){return p(this,r,"#808080")},n.prototype.palette=function(r,e="#ffffff"){return p(this,r,e)};},m=b;module.exports=m;//# sourceMappingURL=mix.cjs.map
//# sourceMappingURL=mix.cjs.map