MCPcopy Index your code
hub / github.com/afkbrb/github-avatar-generator / multiColorConfigExample2

Method multiColorConfigExample2

example/Examples.java:105–114  ·  view source on GitHub ↗

Set foreground colors. Final color will be chosen at random in the given list.

()

Source from the content-addressed store, hash-verified

103 * Final color will be chosen at random in the given list.
104 */
105 public static void multiColorConfigExample2() {
106 AvatarConfig config = new AvatarConfig();
107 List<Color> colors = new ArrayList<>();
108 colors.add(Color.YELLOW);
109 colors.add(Color.ORANGE);
110 colors.add(Color.CYAN);
111 config.setForeColors(colors);
112 Avatar avatar = new Avatar(config);
113 multiImageExhibitor(avatar, config.getCellSize(), config.getCellSize(), 6);
114 }
115
116 /**
117 * Tool for showing multi images together.

Callers

nothing calls this directly

Calls 3

setForeColorsMethod · 0.95
multiImageExhibitorMethod · 0.95
getCellSizeMethod · 0.95

Tested by

no test coverage detected