diff options
author | Aidan Ross <aross02@fairport.org> | 2023-05-24 13:33:59 -0400 |
---|---|---|
committer | Aidan Ross <aross02@fairport.org> | 2023-05-24 13:33:59 -0400 |
commit | 33a969310a788ae5c10be87f04dd0ff5cbcc6399 (patch) | |
tree | 2ced563256888a01eedf259a6dde06dafe01e165 /src/fallTest/TButton.java | |
parent | b47c8be84cc5b269e32dc44f7e67a1dd426d5349 (diff) | |
download | NPEhero-33a969310a788ae5c10be87f04dd0ff5cbcc6399.tar.gz NPEhero-33a969310a788ae5c10be87f04dd0ff5cbcc6399.tar.bz2 NPEhero-33a969310a788ae5c10be87f04dd0ff5cbcc6399.zip |
Scoring now almost works, and finished the visuals for hitting a note
Diffstat (limited to 'src/fallTest/TButton.java')
-rw-r--r-- | src/fallTest/TButton.java | 9 |
1 files changed, 7 insertions, 2 deletions
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 |