X-Git-Url: http://dolda2000.com/gitweb/?p=kaka%2Fcakelight.git;a=blobdiff_plain;f=src%2Fkaka%2Fcakelight%2FGuiTest.java;h=c72519a96dd1d91d1b90247acde5d90c29f51626;hp=5aaba2fd686f31891223235d75243732da78fbef;hb=ed56b145bc04170b4129f4ff92b9eab0e6e4dc74;hpb=f722ee0d05ade1f90b7bc5e51d68b3aed4d65652 diff --git a/src/kaka/cakelight/GuiTest.java b/src/kaka/cakelight/GuiTest.java index 5aaba2f..c72519a 100644 --- a/src/kaka/cakelight/GuiTest.java +++ b/src/kaka/cakelight/GuiTest.java @@ -83,15 +83,19 @@ public class GuiTest extends Application { float rowSize = 9f * BLOCK / config.leds.rows; // DropShadow shadow = new DropShadow(BlurType.ONE_PASS_BOX, Color.RED, colSize * 2, colSize, 0, 0); for (int x = 0; x < config.leds.cols; x++) { - gc.setFill(getLedColor(frame, x + config.leds.rows)); + // Top + gc.setFill(getLedColor(frame, config.leds.cols * 2 + config.leds.rows - x - 1)); gc.fillRect(GUTTER + x * colSize, GUTTER - ledLength, colSize, ledLength); - gc.setFill(getLedColor(frame, config.leds.rows * 2 + config.leds.cols * 2 - 1 - x)); + // Bottom + gc.setFill(getLedColor(frame, x)); gc.fillRect(GUTTER + x * colSize, GUTTER + 9 * BLOCK, colSize, ledLength); } for (int y = 0; y < config.leds.rows; y++) { - gc.setFill(getLedColor(frame, config.leds.rows - 1 - y)); + // Left + gc.setFill(getLedColor(frame, config.leds.cols * 2 + config.leds.rows + y)); gc.fillRect(GUTTER - ledLength, GUTTER + y * rowSize, ledLength, rowSize); - gc.setFill(getLedColor(frame, y + config.leds.rows + config.leds.cols)); + // Right + gc.setFill(getLedColor(frame, config.leds.rows + config.leds.cols - y - 1)); gc.fillRect(GUTTER + 16 * BLOCK, GUTTER + y * rowSize, ledLength, rowSize); } }