New smooth video mode that mixes the new frame with the previous one
[kaka/cakelight.git] / src / kaka / cakelight / SingleColorMode.java
1 package kaka.cakelight;
2
3 public class SingleColorMode extends Mode {
4     private Color color;
5
6     public SingleColorMode(Color c) {
7         color = c;
8     }
9
10     @Override
11     public void enter(Configuration config) {
12         LedFrame frame = LedFrame.from(config);
13         frame.fillColor(color);
14         updateWithFrame(frame);
15     }
16
17     @Override
18     public void exit() {
19     }
20 }