MCPcopy Index your code
hub / github.com/QLHazyCoder/FlowPilot / isReddishColor

Function isReddishColor

content/vps-panel.js:304–310  ·  view source on GitHub ↗
(colorText)

Source from the content-addressed store, hash-verified

302}
303
304function isReddishColor(colorText) {
305 const channels = parseCssColorChannels(colorText);
306 if (!channels) return false;
307 const { r, g, b, a = 1 } = channels;
308 if (a <= 0.05) return false;
309 return r >= 120 && r >= g + 35 && r >= b + 35;
310}
311
312function getStep9ErrorVisualSignals(element, className = '') {
313 const signals = [];

Callers 1

Calls 1

parseCssColorChannelsFunction · 0.85

Tested by

no test coverage detected