MCPcopy Index your code
hub / github.com/processing/processing / getColor

Method getColor

app/src/processing/app/Preferences.java:332–341  ·  view source on GitHub ↗
(String name)

Source from the content-addressed store, hash-verified

330
331
332 static public Color getColor(String name) {
333 Color parsed = Color.GRAY; // set a default
334 String s = get(name);
335 if ((s != null) && (s.indexOf("#") == 0)) { //$NON-NLS-1$
336 try {
337 parsed = new Color(Integer.parseInt(s.substring(1), 16));
338 } catch (Exception e) { }
339 }
340 return parsed;
341 }
342
343
344 static public void setColor(String attr, Color what) {

Callers 4

PreferencesFrameMethod · 0.95
showFrameMethod · 0.95
mouseReleasedMethod · 0.95
paintComponentMethod · 0.95

Calls 2

getMethod · 0.95
parseIntMethod · 0.80

Tested by

no test coverage detected