MCPcopy Create free account
hub / github.com/Nynxz/ComfyUI-IdeogramHelper / nextBoxColor

Function nextBoxColor

web/main.js:7639–7643  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

7637];
7638let _colorSeq = 0;
7639function nextBoxColor() {
7640 const c = BOX_PALETTE[_colorSeq % BOX_PALETTE.length];
7641 _colorSeq += 1;
7642 return c;
7643}
7644function groupColor(groupId) {
7645 let h2 = 0;
7646 for (let i = 0; i < groupId.length; i++) h2 = h2 * 31 + groupId.charCodeAt(i) >>> 0;

Callers 1

newElementFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected