-
Notifications
You must be signed in to change notification settings - Fork 31
Expand file tree
/
Copy pathGenColors-DIH749TS-B2T_OG9X.chunk.mjs
More file actions
3 lines (3 loc) · 1.23 KB
/
GenColors-DIH749TS-B2T_OG9X.chunk.mjs
File metadata and controls
3 lines (3 loc) · 1.23 KB
1
2
3
/*! third party licenses: js/vendor.LICENSE.txt */
import{t as o,r as h,a as g}from"./logreader-main.mjs";h(g);class n{constructor(e,t,r,c){this.r=e,this.g=t,this.b=r,c&&(this.name=c)}get color(){const e=t=>`00${t.toString(16)}`.slice(-2);return`#${e(this.r)}${e(this.g)}${e(this.b)}`}}function b(s,e){const t=new Array(3);return t[0]=(e[1].r-e[0].r)/s,t[1]=(e[1].g-e[0].g)/s,t[2]=(e[1].b-e[0].b)/s,t}function a(s,e,t){const r=[];r.push(e);const c=b(s,[e,t]);for(let l=1;l<s;l++){const u=Math.floor(e.r+c[0]*l),i=Math.floor(e.g+c[1]*l),w=Math.floor(e.b+c[2]*l);r.push(new n(u,i,w))}return r}const f=[new n(182,70,157,o("Purple")),new n(191,103,139,o("Rosy brown")),new n(201,136,121,o("Feldspar")),new n(211,169,103,o("Whiskey")),new n(221,203,85,o("Gold")),new n(165,184,114,o("Olivine")),new n(110,166,143,o("Acapulco")),new n(55,148,172,o("Boston Blue")),new n(0,130,201,o("Nextcloud blue")),new n(45,115,190,o("Mariner")),new n(91,100,179,o("Blue Violet")),new n(136,85,168,o("Deluge"))];function p(s){const e=new n(182,70,157,o("Purple")),t=new n(221,203,85,o("Gold")),r=new n(0,130,201,o("Nextcloud blue")),c=a(s,e,t),l=a(s,t,r),u=a(s,r,e);return c.concat(l).concat(u)}export{p as G,f as d};
//# sourceMappingURL=GenColors-DIH749TS-B2T_OG9X.chunk.mjs.map