aboutsummaryrefslogtreecommitdiff
path: root/src/GamePlay/TButton.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/GamePlay/TButton.java')
-rw-r--r--src/GamePlay/TButton.java28
1 files changed, 28 insertions, 0 deletions
diff --git a/src/GamePlay/TButton.java b/src/GamePlay/TButton.java
new file mode 100644
index 0000000..a8ae338
--- /dev/null
+++ b/src/GamePlay/TButton.java
@@ -0,0 +1,28 @@
+//glowing block of color c (jfx node)
+
+package GamePlay;
+
+import javafx.scene.paint.Color;
+import javafx.scene.shape.Rectangle;
+
+public class TButton extends Rectangle
+{
+ private Color col;
+ public TButton(Color c, double a, double b, int r)
+ {
+ super();
+
+ col = new Color(c.darker().getRed(), c.darker().getGreen(), c.darker().getBlue(), 0.45);
+ super.setFill(col);
+ super.setWidth(a);
+ super.setHeight(b);
+ super.setArcHeight(r);
+ super.setArcWidth(r);
+ super.setStroke(c);
+ super.setStrokeWidth(5);
+ }
+
+ public Color getColor() {
+ return col;
+ }
+} \ No newline at end of file