- for (int i = 0; i < config.leds.getCount(); i++) {
- double r = Math.sin(2 * i * Math.PI / config.leds.getCount() + time * 0.001) * 0.5 + 0.5;
- double g = Math.cos(2 * i * Math.PI / config.leds.getCount() + time * 0.002) * 0.5 + 0.5;
- frame.setLedColor(i, Color.rgb(r, g, 0));
+ if (type == 0) {
+ for (int i = 0; i < config.leds.getCount(); i++) {
+ double r = Math.sin(2 * i * Math.PI / config.leds.getCount() + time * 0.001) * 0.5 + 0.5;
+ double g = Math.cos(2 * i * Math.PI / config.leds.getCount() + time * 0.002) * 0.5 + 0.5;
+ frame.setLedColor(i, Color.rgb(r, g, 0));
+ }
+ } else if (type == 1) {
+ for (int i = 0; i < config.leds.getCount(); i++) {
+ double g = noise.getr(0, 0.5, 0.5, frame.xOf(i), frame.yOf(i), time / 5000.0);
+ double b = noise.getr(0, 1, 1, frame.xOf(i), frame.yOf(i), time / 7000.0);
+ frame.setLedColor(i, Color.rgb(0, g, b));
+ }