import javafx.scene.paint.Color;
import javafx.scene.paint.Paint;
import javafx.stage.Stage;
+import kaka.cakelight.mode.AmbientMode;
import org.opencv.core.Core;
import org.opencv.core.Mat;
return javafx.scene.paint.Color.rgb(c.r(), c.g(), c.b());
}
- private void drawFrame(GraphicsContext gc, Frame frame) {
+ private void drawFrame(GraphicsContext gc, VideoFrame frame) {
if (paused) return;
System.out.println("Drawing a frame");
drawCols(gc, frame);
}
}
- private void drawVideo(GraphicsContext gc, Frame frame) {
+ private void drawVideo(GraphicsContext gc, VideoFrame frame) {
byte[] rgb = new byte[3];
Mat img = frame.getConvertedImage();
float colSize = 16 * BLOCK / (float)img.cols();
}
}
- private void drawCols(GraphicsContext gc, Frame frame) {
+ private void drawCols(GraphicsContext gc, VideoFrame frame) {
byte[] rgb = new byte[3];
for (int x = 0; x < config.leds.cols; x++) {
for (int y = 0; y < 9; y++) {
}
}
- private void drawRows(GraphicsContext gc, Frame frame) {
+ private void drawRows(GraphicsContext gc, VideoFrame frame) {
byte[] rgb = new byte[3];
for (int y = 0; y < config.leds.rows; y++) {
for (int x = 0; x < 16; x++) {