Add tests for Color functions

This commit is contained in:
Daniel Imms
2019-11-10 11:17:36 -08:00
parent 53b0149764
commit 51c77568a8
2 changed files with 68 additions and 2 deletions
+1 -1
View File
@@ -25,7 +25,7 @@ export function blend(bg: IColor, fg: IColor): IColor {
export function fromCss(css: string): IColor {
return {
css,
rgba: parseInt(css.slice(1), 16) << 8 | 0xFF
rgba: (parseInt(css.slice(1), 16) << 8 | 0xFF) >>> 0
};
}