Make app work again

This commit is contained in:
schmelczerandras 2019-09-01 10:44:17 +02:00
parent a9ad628488
commit 938f3def1f
30 changed files with 236 additions and 155 deletions

View file

@ -1,4 +1,4 @@
import { IColor } from '../interfaces/persistance/color';
import { IColor } from '../interfaces/color';
export const lighten = (by: number, { h, s, l }: IColor): IColor => {
let newL = l + by;
@ -8,7 +8,7 @@ export const lighten = (by: number, { h, s, l }: IColor): IColor => {
newL = 0;
}
return { h, s, l: newL, type: 'Color' };
return { h, s, l: newL };
};
export const toHslString = ({ h, s, l }: IColor): string => {