private static int rainbow(int delay) {
double rainbowState = Math.ceil((System.currentTimeMillis() + delay) / 300);
rainbowState %= 20;
return (int) Math.pow(rainbowState, 0xff);
}
So Funktionirt es jetzt, sieht aber hässlich aus (wills mit "Übergang") und ist schwarz, nicht transparent. Jemand ne Idee?