瀏覽代碼

Converts to function

main
Eric Amodio 1 年之前
父節點
當前提交
b68a125657
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. +2
    -2
      src/system/color.ts

+ 2
- 2
src/system/color.ts 查看文件

@ -44,9 +44,9 @@ export function mix(color1: string, color2: string, percentage: number) {
)}, ${mixChannel(a1, a2, percentage)})`;
}
const mixChannel = (channel1: number, channel2: number, percentage: number) => {
function mixChannel(channel1: number, channel2: number, percentage: number) {
return channel1 + ((channel2 - channel1) * percentage) / 100;
};
}
export function scale(value1: string, value2: string, steps: number): string[] {
const colors = [];

Loading…
取消
儲存