MCPcopy Create free account
hub / github.com/benfry/processing4 / makeGradient

Method makeGradient

app/src/processing/app/ui/Theme.java:204–210  ·  view source on GitHub ↗
(String attribute, int wide, int high)

Source from the content-addressed store, hash-verified

202
203
204 static public Image makeGradient(String attribute, int wide, int high) {
205 if ("lab".equals(Preferences.get("theme.gradient.method"))) {
206 return makeGradientLab(attribute, wide, high);
207 } else { // otherwise go with the default
208 return makeGradientRGB(attribute, wide, high);
209 }
210 }
211
212
213 static private Image makeGradientRGB(String attribute, int wide, int high) {

Callers 5

updateThemeMethod · 0.95
updateThemeMethod · 0.95
updateThemeMethod · 0.95
updateThemeMethod · 0.95
updateThemeMethod · 0.95

Calls 4

getMethod · 0.95
makeGradientLabMethod · 0.95
makeGradientRGBMethod · 0.95
equalsMethod · 0.45

Tested by

no test coverage detected