diff options
Diffstat (limited to '')
-rw-r--r-- | src/gui/Block.java (renamed from src/main/Block.java) | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/main/Block.java b/src/gui/Block.java index 8f8267f..42cedba 100644 --- a/src/main/Block.java +++ b/src/gui/Block.java @@ -1,6 +1,6 @@ //glowing block of color c (jfx node) -package main; +package gui; import javafx.scene.effect.BlurType; import javafx.scene.effect.DropShadow; @@ -9,7 +9,7 @@ import javafx.scene.shape.Rectangle; public class Block extends Rectangle { - public Block(Color c) + public Block(Color c, double a, double b, int r) { super(); DropShadow dropShadow = new DropShadow(); @@ -18,10 +18,10 @@ public class Block extends Rectangle dropShadow.setBlurType(BlurType.GAUSSIAN); super.setFill(c); - super.setWidth(200); - super.setHeight(100); - super.setArcHeight(25); - super.setArcWidth(25); + super.setWidth(a); + super.setHeight(b); + super.setArcHeight(r); + super.setArcWidth(r); super.setEffect(dropShadow); } }
\ No newline at end of file |