MCPcopy Create free account
hub / github.com/MyGUI/mygui / switchColor

Function switchColor

MyGUIEngine/src/msdfgen/core/edge-coloring.cpp:55–58  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

53}
54
55static void switchColor(EdgeColor &color, unsigned long long &seed) {
56 int shifted = color<<(1+seedExtract2(seed));
57 color = EdgeColor((shifted|shifted>>3)&WHITE);
58}
59
60static void switchColor(EdgeColor &color, unsigned long long &seed, EdgeColor banned) {
61 EdgeColor combined = EdgeColor(color&banned);

Callers 2

edgeColoringSimpleFunction · 0.85
edgeColoringInkTrapFunction · 0.85

Calls 2

seedExtract2Function · 0.85
EdgeColorEnum · 0.85

Tested by

no test coverage detected