MCPcopy Create free account
hub / github.com/VCVRack/Rack / getNextCableColor

Method getNextCableColor

src/app/RackWidget.cpp:1620–1633  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1618
1619
1620NVGcolor RackWidget::getNextCableColor() {
1621 if (settings::cableColors.empty())
1622 return color::WHITE;
1623
1624 int id = internal->nextCableColorId;
1625 if (settings::cableAutoRotate) {
1626 internal->nextCableColorId++;
1627 }
1628 if (id >= (int) settings::cableColors.size())
1629 id = 0;
1630 if (internal->nextCableColorId >= (int) settings::cableColors.size())
1631 internal->nextCableColorId = 0;
1632 return settings::cableColors[id];
1633}
1634
1635
1636ParamWidget* RackWidget::getTouchedParam() {

Callers 2

fromJsonMethod · 0.80
onDragStartMethod · 0.80

Calls 2

emptyMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected