o
mni-color
Code Playground
// Return a `Color` or any valid color format (e.g. a hex string) to see the color visualized const color = new Color("#b7fe6d"); console.log("color:", color); const updated = color.average([new Color("sky blue")], { weights: [0.75, 0.25] }); console.log("updated color:", updated); const result = updated.getTetradicHarmonyColors()[0]; return result; // rendered below if valid
Output
Returned color
#adf39a
> color: Color(#b7fe6d)
> updated color: Color(#adf39a)
Reset playground