← Back
Editing: colors-BHGKZFDI-BKHpzg2v.chunk.mjs
import{r as f,t as m,a as e}from"./createElementId-DhjFt1I9-C_WKCRq3.chunk.mjs";f(m);class t{constructor(n,o,s,i){this.r=n,this.g=o,this.b=s,this.name=i,this.r=Math.min(n,255),this.g=Math.min(o,255),this.b=Math.min(s,255),this.name=i}get color(){const n=o=>`00${o.toString(16)}`.slice(-2);return`#${n(this.r)}${n(this.g)}${n(this.b)}`}}function p(r,n,o){return{r:(o.r-n.r)/r,g:(o.g-n.g)/r,b:(o.b-n.b)/r}}function a(r,n,o){const s=[];s.push(n);const i=p(r,n,o);for(let c=1;c<r;c++){const w=Math.floor(n.r+i.r*c),g=Math.floor(n.g+i.g*c),b=Math.floor(n.b+i.b*c);s.push(new t(w,g,b))}return s}const h=new t(182,70,157,e("Purple")),l=new t(221,203,85,e("Gold")),u=new t(0,130,201,e("Nextcloud blue")),d=new t(0,0,0,e("Black")),B=new t(255,255,255,e("White")),$=[h,new t(191,103,139,e("Rosy brown")),new t(201,136,121,e("Feldspar")),new t(211,169,103,e("Whiskey")),l,new t(165,184,114,e("Olivine")),new t(110,166,143,e("Acapulco")),new t(55,148,172,e("Boston Blue")),u,new t(45,115,190,e("Mariner")),new t(91,100,179,e("Blue Violet")),new t(136,85,168,e("Deluge"))];function x(r){const n=a(r,h,l),o=a(r,l,u),s=a(r,u,h);return n.concat(o).concat(s)}export{d as C,B as a,t as b,$ as d,x as g}; //# sourceMappingURL=colors-BHGKZFDI-BKHpzg2v.chunk.mjs.map
Save File
Cancel