aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGlease <4586901+Glease@users.noreply.github.com>2022-12-13 15:48:25 +0800
committerGitHub <noreply@github.com>2022-12-13 08:48:25 +0100
commitcd881d3b21339f1f44e8139d781edcb4f3e8e091 (patch)
tree4af31136efd2ea850729e93d54b086e1058926a6 /src
parent57c25a6c4105b6bc8716e772d054dd492462b53e (diff)
downloadGT5-Unofficial-cd881d3b21339f1f44e8139d781edcb4f3e8e091.tar.gz
GT5-Unofficial-cd881d3b21339f1f44e8139d781edcb4f3e8e091.tar.bz2
GT5-Unofficial-cd881d3b21339f1f44e8139d781edcb4f3e8e091.zip
change how item color animation is ticked (#455)
Diffstat (limited to 'src')
-rw-r--r--src/main/java/gtPlusPlus/core/item/base/BaseItemComponent.java631
1 files changed, 11 insertions, 620 deletions
diff --git a/src/main/java/gtPlusPlus/core/item/base/BaseItemComponent.java b/src/main/java/gtPlusPlus/core/item/base/BaseItemComponent.java
index aa22f7d813..aaddbe484f 100644
--- a/src/main/java/gtPlusPlus/core/item/base/BaseItemComponent.java
+++ b/src/main/java/gtPlusPlus/core/item/base/BaseItemComponent.java
@@ -20,6 +20,7 @@ import gtPlusPlus.core.util.math.MathUtils;
import gtPlusPlus.core.util.minecraft.EntityUtils;
import gtPlusPlus.core.util.minecraft.ItemUtils;
import gtPlusPlus.core.util.sys.KeyboardUtils;
+import java.awt.Color;
import java.util.*;
import net.minecraft.client.renderer.texture.IIconRegister;
import net.minecraft.entity.Entity;
@@ -316,18 +317,6 @@ public class BaseItemComponent extends Item {
}
}
}
-
- if (extraData != null) {
- if (componentMaterial != null && componentMaterial.getRGBA()[3] > 1) {
- if (((Map<Integer, Short[]>) extraData).get(9999) == null) {
- ((Map<Integer, Short[]>) extraData).put(9999, new Short[] {0});
- }
- Short aCurrentFrame = ((Map<Integer, Short[]>) extraData).get(9999)[0];
- short fC = (short) (aCurrentFrame >= Short.MAX_VALUE ? 0 : aCurrentFrame + 1);
- ((Map<Integer, Short[]>) extraData).put((int) 9999, new Short[] {(short) (fC), 0});
- ((Map<Integer, Short[]>) extraData).put((int) 9998, new Short[] {aCurrentFrame, 0});
- }
- }
}
/**
@@ -369,620 +358,22 @@ public class BaseItemComponent extends Item {
if (this.componentMaterial.getRGBA()[3] <= 1) {
return this.componentColour;
} else {
-
// Mild Glow Effect
if (this.componentMaterial.getRGBA()[3] == 2) {
- if (extraData == null) {
- extraData = new HashMap<Integer, Short[]>();
- ((Map<Integer, Short[]>) extraData).put((int) Short.MAX_VALUE, new Short[] {0});
- ((Map<Integer, Short[]>) extraData).put((int) Short.MAX_VALUE - 1, new Short[] {0});
- short[] er = this.componentMaterial.getRGBA();
- short value = 0;
- Short[] ht = new Short[] {er[0], er[1], er[2]};
- int aMaxCycles = 200;
- for (int y = 0; y < aMaxCycles; y++) {
- if (y < (50)) {
- value = 1;
- } else if (y < (100)) {
- value = 0;
- } else if (y < (150)) {
- value = -1;
- } else {
- value = 0;
- }
- short r = (short) Math.max(Math.min(255, (ht[0] + value)), 0);
- short g = (short) Math.max(Math.min(255, (ht[1] + value)), 0);
- short b = (short) Math.max(Math.min(255, (ht[2] + value)), 0);
- Short[] qq = new Short[] {
- (short) Math.min(255, r), (short) Math.min(255, g), (short) Math.min(255, b)
- };
- ht = qq;
- ((Map<Integer, Short[]>) extraData).put(y, qq);
- }
- ((Map<Integer, Short[]>) extraData).put((int) Short.MAX_VALUE - 2, new Short[] {
- (short) (((Map<Integer, Short[]>) extraData).size() - 1)
- });
- }
- if (extraData != null) {
-
- Short aCurrentFrame = ((Map<Integer, Short[]>) extraData).get((int) Short.MAX_VALUE)[0];
- Short aSize = (short) (((Map<Integer, Short[]>) extraData).size() - 3);
- short nextFrame = (short) ((aCurrentFrame < aSize) ? (aCurrentFrame + 1) : 0);
- Short[] aCurrentFrameRGB = ((Map<Integer, Short[]>) extraData)
- .get(aCurrentFrame < aSize ? (int) aCurrentFrame : 0);
- ((Map<Integer, Short[]>) extraData).put((int) Short.MAX_VALUE, new Short[] {nextFrame});
- return Utils.rgbtoHexValue(aCurrentFrameRGB[0], aCurrentFrameRGB[1], aCurrentFrameRGB[2]);
- }
+ // 4 sec cycle, 200 control point. 20ms interval.
+ int currentFrame = (int) ((System.nanoTime() % 4_000_000_000L) / 20_000_000L);
+ int value = currentFrame < 50
+ ? currentFrame + 1
+ : currentFrame < 100 ? 50 : currentFrame < 150 ? 149 - currentFrame : 0;
+ return Utils.rgbtoHexValue(
+ Math.min(255, Math.max(componentMaterial.getRGBA()[0] + value, 0)),
+ Math.min(255, Math.max(componentMaterial.getRGBA()[1] + value, 0)),
+ Math.min(255, Math.max(componentMaterial.getRGBA()[2] + value, 0)));
}
// Rainbow Hue Cycle
else if (this.componentMaterial.getRGBA()[3] == 3) {
- if (extraData == null) {
- extraData = new HashMap<Integer, Short[]>();
- ((Map<Integer, Short[]>) extraData).put((int) Short.MAX_VALUE, new Short[] {0});
- ((Map<Integer, Short[]>) extraData).put((int) Short.MAX_VALUE - 1, new Short[] {0});
- int aSlot = 0;
-
- // Let's say you're starting with green:
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {0, 255, 0});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {0, 255, 0});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {0, 255, 0});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {0, 255, 0});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {0, 255, 0});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {0, 255, 0});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {0, 255, 0});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {0, 255, 0});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {0, 255, 0});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {0, 255, 0});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {0, 255, 0});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {0, 255, 0});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {0, 255, 0});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {0, 255, 0});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {0, 255, 0});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {0, 255, 0});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {0, 255, 0});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {0, 255, 0});
- // Slowly start adding in some red to get to yellow:
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {51, 255, 0});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {51, 255, 0});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {51, 255, 0});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {51, 255, 0});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {51, 255, 0});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {51, 255, 0});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {51, 255, 0});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {51, 255, 0});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {51, 255, 0});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {51, 255, 0});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {51, 255, 0});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {51, 255, 0});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {51, 255, 0});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {51, 255, 0});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {51, 255, 0});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {51, 255, 0});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {51, 255, 0});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {51, 255, 0});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {102, 255, 0});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {102, 255, 0});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {102, 255, 0});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {102, 255, 0});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {102, 255, 0});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {102, 255, 0});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {102, 255, 0});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {102, 255, 0});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {102, 255, 0});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {102, 255, 0});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {102, 255, 0});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {102, 255, 0});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {102, 255, 0});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {102, 255, 0});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {102, 255, 0});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {102, 255, 0});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {102, 255, 0});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {102, 255, 0});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {153, 255, 0});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {153, 255, 0});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {153, 255, 0});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {153, 255, 0});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {153, 255, 0});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {153, 255, 0});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {153, 255, 0});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {153, 255, 0});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {153, 255, 0});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {153, 255, 0});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {153, 255, 0});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {153, 255, 0});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {153, 255, 0});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {153, 255, 0});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {153, 255, 0});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {153, 255, 0});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {153, 255, 0});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {153, 255, 0});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {204, 255, 0});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {204, 255, 0});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {204, 255, 0});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {204, 255, 0});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {204, 255, 0});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {204, 255, 0});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {204, 255, 0});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {204, 255, 0});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {204, 255, 0});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {204, 255, 0});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {204, 255, 0});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {204, 255, 0});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {204, 255, 0});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {204, 255, 0});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {204, 255, 0});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {204, 255, 0});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {204, 255, 0});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {204, 255, 0});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {255, 255, 0});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {255, 255, 0});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {255, 255, 0});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {255, 255, 0});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {255, 255, 0});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {255, 255, 0});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {255, 255, 0});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {255, 255, 0});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {255, 255, 0});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {255, 255, 0});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {255, 255, 0});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {255, 255, 0});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {255, 255, 0});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {255, 255, 0});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {255, 255, 0});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {255, 255, 0});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {255, 255, 0});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {255, 255, 0});
- // Then, take out the green to get to red:
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {255, 204, 0});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {255, 204, 0});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {255, 204, 0});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {255, 204, 0});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {255, 204, 0});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {255, 204, 0});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {255, 204, 0});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {255, 204, 0});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {255, 204, 0});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {255, 204, 0});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {255, 204, 0});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {255, 204, 0});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {255, 204, 0});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {255, 204, 0});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {255, 204, 0});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {255, 204, 0});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {255, 204, 0});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {255, 204, 0});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {255, 153, 0});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {255, 153, 0});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {255, 153, 0});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {255, 153, 0});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {255, 153, 0});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {255, 153, 0});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {255, 153, 0});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {255, 153, 0});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {255, 153, 0});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {255, 153, 0});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {255, 153, 0});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {255, 153, 0});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {255, 153, 0});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {255, 153, 0});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {255, 153, 0});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {255, 153, 0});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {255, 153, 0});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {255, 153, 0});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {255, 102, 0});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {255, 102, 0});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {255, 102, 0});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {255, 102, 0});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {255, 102, 0});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {255, 102, 0});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {255, 102, 0});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {255, 102, 0});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {255, 102, 0});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {255, 102, 0});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {255, 102, 0});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {255, 102, 0});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {255, 102, 0});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {255, 102, 0});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {255, 102, 0});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {255, 102, 0});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {255, 102, 0});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {255, 102, 0});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {255, 51, 0});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {255, 51, 0});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {255, 51, 0});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {255, 51, 0});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {255, 51, 0});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {255, 51, 0});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {255, 51, 0});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {255, 51, 0});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {255, 51, 0});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {255, 51, 0});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {255, 51, 0});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {255, 51, 0});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {255, 51, 0});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {255, 51, 0});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {255, 51, 0});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {255, 51, 0});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {255, 51, 0});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {255, 51, 0});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {255, 0, 0});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {255, 0, 0});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {255, 0, 0});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {255, 0, 0});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {255, 0, 0});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {255, 0, 0});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {255, 0, 0});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {255, 0, 0});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {255, 0, 0});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {255, 0, 0});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {255, 0, 0});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {255, 0, 0});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {255, 0, 0});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {255, 0, 0});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {255, 0, 0});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {255, 0, 0});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {255, 0, 0});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {255, 0, 0});
- // Now, add blue to get to purple:
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {255, 0, 51});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {255, 0, 51});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {255, 0, 51});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {255, 0, 51});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {255, 0, 51});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {255, 0, 51});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {255, 0, 51});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {255, 0, 51});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {255, 0, 51});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {255, 0, 51});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {255, 0, 51});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {255, 0, 51});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {255, 0, 51});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {255, 0, 51});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {255, 0, 51});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {255, 0, 51});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {255, 0, 51});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {255, 0, 51});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {255, 0, 102});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {255, 0, 102});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {255, 0, 102});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {255, 0, 102});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {255, 0, 102});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {255, 0, 102});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {255, 0, 102});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {255, 0, 102});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {255, 0, 102});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {255, 0, 102});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {255, 0, 102});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {255, 0, 102});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {255, 0, 102});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {255, 0, 102});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {255, 0, 102});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {255, 0, 102});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {255, 0, 102});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {255, 0, 102});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {255, 0, 153});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {255, 0, 153});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {255, 0, 153});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {255, 0, 153});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {255, 0, 153});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {255, 0, 153});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {255, 0, 153});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {255, 0, 153});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {255, 0, 153});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {255, 0, 153});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {255, 0, 153});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {255, 0, 153});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {255, 0, 153});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {255, 0, 153});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {255, 0, 153});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {255, 0, 153});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {255, 0, 153});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {255, 0, 153});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {255, 0, 204});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {255, 0, 204});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {255, 0, 204});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {255, 0, 204});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {255, 0, 204});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {255, 0, 204});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {255, 0, 204});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {255, 0, 204});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {255, 0, 204});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {255, 0, 204});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {255, 0, 204});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {255, 0, 204});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {255, 0, 204});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {255, 0, 204});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {255, 0, 204});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {255, 0, 204});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {255, 0, 204});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {255, 0, 204});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {255, 0, 255});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {255, 0, 255});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {255, 0, 255});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {255, 0, 255});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {255, 0, 255});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {255, 0, 255});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {255, 0, 255});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {255, 0, 255});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {255, 0, 255});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {255, 0, 255});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {255, 0, 255});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {255, 0, 255});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {255, 0, 255});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {255, 0, 255});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {255, 0, 255});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {255, 0, 255});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {255, 0, 255});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {255, 0, 255});
- // Then, remove red to get to blue:
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {204, 0, 255});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {204, 0, 255});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {204, 0, 255});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {204, 0, 255});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {204, 0, 255});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {204, 0, 255});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {204, 0, 255});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {204, 0, 255});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {204, 0, 255});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {204, 0, 255});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {204, 0, 255});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {204, 0, 255});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {204, 0, 255});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {204, 0, 255});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {204, 0, 255});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {204, 0, 255});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {204, 0, 255});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {204, 0, 255});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {153, 0, 255});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {153, 0, 255});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {153, 0, 255});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {153, 0, 255});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {153, 0, 255});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {153, 0, 255});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {153, 0, 255});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {153, 0, 255});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {153, 0, 255});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {153, 0, 255});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {153, 0, 255});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {153, 0, 255});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {153, 0, 255});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {153, 0, 255});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {153, 0, 255});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {153, 0, 255});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {153, 0, 255});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {153, 0, 255});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {102, 0, 255});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {102, 0, 255});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {102, 0, 255});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {102, 0, 255});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {102, 0, 255});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {102, 0, 255});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {102, 0, 255});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {102, 0, 255});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {102, 0, 255});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {102, 0, 255});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {102, 0, 255});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {102, 0, 255});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {102, 0, 255});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {102, 0, 255});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {102, 0, 255});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {102, 0, 255});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {102, 0, 255});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {102, 0, 255});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {51, 0, 255});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {51, 0, 255});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {51, 0, 255});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {51, 0, 255});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {51, 0, 255});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {51, 0, 255});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {51, 0, 255});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {51, 0, 255});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {51, 0, 255});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {51, 0, 255});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {51, 0, 255});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {51, 0, 255});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {51, 0, 255});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {51, 0, 255});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {51, 0, 255});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {51, 0, 255});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {51, 0, 255});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {51, 0, 255});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {0, 0, 255});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {0, 0, 255});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {0, 0, 255});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {0, 0, 255});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {0, 0, 255});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {0, 0, 255});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {0, 0, 255});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {0, 0, 255});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {0, 0, 255});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {0, 0, 255});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {0, 0, 255});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {0, 0, 255});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {0, 0, 255});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {0, 0, 255});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {0, 0, 255});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {0, 0, 255});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {0, 0, 255});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {0, 0, 255});
- // Add the green back in to get to cyan:
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {0, 51, 255});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {0, 51, 255});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {0, 51, 255});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {0, 51, 255});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {0, 51, 255});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {0, 51, 255});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {0, 51, 255});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {0, 51, 255});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {0, 51, 255});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {0, 51, 255});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {0, 51, 255});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {0, 51, 255});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {0, 51, 255});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {0, 51, 255});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {0, 51, 255});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {0, 51, 255});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {0, 51, 255});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {0, 51, 255});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {0, 102, 255});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {0, 102, 255});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {0, 102, 255});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {0, 102, 255});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {0, 102, 255});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {0, 102, 255});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {0, 102, 255});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {0, 102, 255});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {0, 102, 255});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {0, 102, 255});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {0, 102, 255});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {0, 102, 255});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {0, 102, 255});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {0, 102, 255});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {0, 102, 255});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {0, 102, 255});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {0, 102, 255});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {0, 102, 255});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {0, 153, 255});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {0, 153, 255});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {0, 153, 255});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {0, 153, 255});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {0, 153, 255});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {0, 153, 255});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {0, 153, 255});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {0, 153, 255});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {0, 153, 255});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {0, 153, 255});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {0, 153, 255});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {0, 153, 255});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {0, 153, 255});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {0, 153, 255});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {0, 153, 255});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {0, 153, 255});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {0, 153, 255});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {0, 153, 255});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {0, 204, 255});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {0, 204, 255});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {0, 204, 255});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {0, 204, 255});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {0, 204, 255});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {0, 204, 255});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {0, 204, 255});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {0, 204, 255});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {0, 204, 255});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {0, 204, 255});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {0, 204, 255});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {0, 204, 255});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {0, 204, 255});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {0, 204, 255});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {0, 204, 255});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {0, 204, 255});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {0, 204, 255});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {0, 204, 255});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {0, 255, 255});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {0, 255, 255});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {0, 255, 255});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {0, 255, 255});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {0, 255, 255});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {0, 255, 255});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {0, 255, 255});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {0, 255, 255});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {0, 255, 255});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {0, 255, 255});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {0, 255, 255});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {0, 255, 255});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {0, 255, 255});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {0, 255, 255});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {0, 255, 255});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {0, 255, 255});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {0, 255, 255});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {0, 255, 255});
- // And finally remove the blue to get back to green:
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {0, 255, 204});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {0, 255, 204});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {0, 255, 204});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {0, 255, 204});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {0, 255, 204});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {0, 255, 204});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {0, 255, 204});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {0, 255, 204});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {0, 255, 204});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {0, 255, 204});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {0, 255, 204});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {0, 255, 204});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {0, 255, 204});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {0, 255, 204});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {0, 255, 204});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {0, 255, 204});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {0, 255, 204});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {0, 255, 204});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {0, 255, 153});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {0, 255, 153});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {0, 255, 153});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {0, 255, 153});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {0, 255, 153});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {0, 255, 153});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {0, 255, 153});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {0, 255, 153});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {0, 255, 153});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {0, 255, 153});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {0, 255, 153});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {0, 255, 153});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {0, 255, 153});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {0, 255, 153});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {0, 255, 153});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {0, 255, 153});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {0, 255, 153});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {0, 255, 153});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {0, 255, 102});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {0, 255, 102});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {0, 255, 102});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {0, 255, 102});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {0, 255, 102});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {0, 255, 102});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {0, 255, 102});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {0, 255, 102});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {0, 255, 102});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {0, 255, 102});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {0, 255, 102});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {0, 255, 102});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {0, 255, 102});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {0, 255, 102});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {0, 255, 102});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {0, 255, 102});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {0, 255, 102});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {0, 255, 102});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {0, 255, 51});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {0, 255, 51});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {0, 255, 51});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {0, 255, 51});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {0, 255, 51});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {0, 255, 51});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {0, 255, 51});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {0, 255, 51});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {0, 255, 51});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {0, 255, 51});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {0, 255, 51});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {0, 255, 51});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {0, 255, 51});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {0, 255, 51});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {0, 255, 51});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {0, 255, 51});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {0, 255, 51});
- ((Map<Integer, Short[]>) extraData).put(aSlot++, new Short[] {0, 255, 51});
- ((Map<Integer, Short[]>) extraData).put((int) Short.MAX_VALUE - 2, new Short[] {
- (short) (((Map<Integer, Short[]>) extraData).size() - 1)
- });
- }
- if (extraData != null) {
- Short aCurrentFrame = ((Map<Integer, Short[]>) extraData).get((int) Short.MAX_VALUE)[0];
- Short aSize = (short) (((Map<Integer, Short[]>) extraData).size() - 3);
- short nextFrame = (short) ((aCurrentFrame < aSize) ? (aCurrentFrame + 1) : 0);
- Short[] aCurrentFrameRGB = ((Map<Integer, Short[]>) extraData)
- .get(aCurrentFrame < aSize ? (int) aCurrentFrame : 0);
- ((Map<Integer, Short[]>) extraData).put((int) Short.MAX_VALUE, new Short[] {nextFrame});
- return Utils.rgbtoHexValue(aCurrentFrameRGB[0], aCurrentFrameRGB[1], aCurrentFrameRGB[2]);
- }
+ return Color.HSBtoRGB((float) (System.nanoTime() % 8_000_000_000L) / 8_000_000_000f, 1, 1);
}
}