X-Git-Url: http://dolda2000.com/gitweb/?p=kaka%2Fcakelight.git;a=blobdiff_plain;f=src%2Fkaka%2Fcakelight%2Fmode%2FTwoColorNoiseMode.java;h=7e3970550371393be6c306eaee69760be420640a;hp=4046cbda17cb8b2770442e4d8ff97425aeeb4c80;hb=2b49e4e255f8591fb730f88e71b6b006008ccd3d;hpb=be3f24968584e816ad89e318f1d0f9078f90d200 diff --git a/src/kaka/cakelight/mode/TwoColorNoiseMode.java b/src/kaka/cakelight/mode/TwoColorNoiseMode.java index 4046cbd..7e39705 100644 --- a/src/kaka/cakelight/mode/TwoColorNoiseMode.java +++ b/src/kaka/cakelight/mode/TwoColorNoiseMode.java @@ -1,7 +1,6 @@ package kaka.cakelight.mode; import kaka.cakelight.Color; -import kaka.cakelight.Console; import kaka.cakelight.LedFrame; import kaka.cakelight.util.SimplexNoise3D; @@ -9,26 +8,6 @@ public class TwoColorNoiseMode extends AmbientMode { private final Color primary, secondary; private SimplexNoise3D noise = new SimplexNoise3D(0); - public static Console.Command getCommand() { - return new Console.Command() { - @Override - public String[] getNames() { - return new String[] {"n", "noise"}; - } - - @Override - public void activate(Console console, String[] args) { - if (args.length == 2) { // col1 + col2 - console.getCakelight().setMode(new TwoColorNoiseMode( - parseColor(args[0]), - parseColor(args[1]) - )); - output("setting two-color noise mode"); - } - } - }; - } - public TwoColorNoiseMode(Color primary, Color secondary) { this.primary = primary; this.secondary = secondary;