MCPcopy Create free account
hub / github.com/microsoft/SandDance / getColor

Function getColor

docs/app/js/sanddance-app.js:58540–58542  ·  view source on GitHub ↗
(color)

Source from the content-addressed store, hash-verified

58538 COLOR1[COLOR1["BRIGHT_WHITE"] = 97] = "BRIGHT_WHITE";
58539})(COLOR || (COLOR = {}));
58540function getColor(color) {
58541 return typeof color === "string" ? COLOR[color.toUpperCase()] || COLOR.WHITE : color;
58542}
58543function addColor(string, color, background) {
58544 if (!(0, _env.isBrowser) && typeof string === "string") {
58545 if (color) {

Callers 1

addColorFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected