});
}
+ static Console.Command fireMode() {
+ return modeCommand(new String[] {"f", "fire"}, (console, args) -> {
+ if (args.length > 1) {
+ console.out("setting multi-color fire mode");
+ return new FireMode(Stream.of(args)
+ .map(console::parseColor)
+ .toArray(Color[]::new)
+ );
+ }
+ return null;
+ });
+ }
+
static Console.Command sunriseMode() {
return modeCommand(new String[] {"sunrise"}, (console, args) -> {
if (args.length == 1) {