MCPcopy
hub / github.com/arduino/Arduino / getColorCycleColor

Method getColorCycleColor

app/src/processing/app/Theme.java:450–454  ·  view source on GitHub ↗
(String name, int i)

Source from the content-addressed store, hash-verified

448 }
449
450 static public Color getColorCycleColor(String name, int i) {
451 int cycleSize = getInteger(name + ".size");
452 name = String.format("%s.%02d", name, i % cycleSize);
453 return PreferencesHelper.parseColor(get(name));
454 }
455
456 static public void setColorCycleColor(String name, int i, Color color) {
457 name = String.format("%s.%02d", name, i);

Callers 1

GraphMethod · 0.95

Calls 4

getIntegerMethod · 0.95
parseColorMethod · 0.95
getMethod · 0.95
formatMethod · 0.45

Tested by

no test coverage detected