Skip to content
Snippets Groups Projects
Commit 921a7132 authored by William Schultz's avatar William Schultz Committed by Markus Alexander Kuppe
Browse files

Limit the amount of possible colors

parent 7009b9b9
No related branches found
No related tags found
No related merge requests found
...@@ -208,7 +208,7 @@ public class DotStateWriter extends StateWriter { ...@@ -208,7 +208,7 @@ public class DotStateWriter extends StateWriter {
color = actionToColors.get(actionName); color = actionToColors.get(actionName);
} else { } else {
// Get the next color and use it for this action. // Get the next color and use it for this action.
this.colorGen++; this.colorGen = (this.colorGen + 1) % this.colorGenMax;
color = this.colorGen; color = this.colorGen;
actionToColors.put(actionName, color); actionToColors.put(actionName, color);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment