fix color bugs

This commit is contained in:
SethBurkart123
2023-09-22 09:41:58 +10:00
parent 548bead17b
commit cbc84c8e79
10 changed files with 93 additions and 117 deletions
+9
View File
@@ -0,0 +1,9 @@
import { Color } from "color";
export function convertColor(inputColor, outputMode) {
console.log(`Converting to ${outputMode}`);
// Convert color to desired output mode
let convertedColor = Color[outputMode]().string();
return convertedColor;
}