From 33a969310a788ae5c10be87f04dd0ff5cbcc6399 Mon Sep 17 00:00:00 2001 From: Aidan Ross Date: Wed, 24 May 2023 13:33:59 -0400 Subject: Scoring now almost works, and finished the visuals for hitting a note --- src/fallTest/TButton.java | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'src/fallTest/TButton.java') diff --git a/src/fallTest/TButton.java b/src/fallTest/TButton.java index 117a8e1..172e810 100644 --- a/src/fallTest/TButton.java +++ b/src/fallTest/TButton.java @@ -11,12 +11,13 @@ import javafx.scene.paint.*; public class TButton extends Rectangle { + private Color col; public TButton(Color c, double a, double b, int r) { super(); - Color newCol = new Color(c.darker().getRed(), c.darker().getGreen(), c.darker().getBlue(), 0.45); - super.setFill(newCol); + 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); @@ -24,4 +25,8 @@ public class TButton extends Rectangle super.setStroke(c); super.setStrokeWidth(5); } + + public Color getColor() { + return col; + } } \ No newline at end of file -- cgit v1.2.3