blob: 89478abc6e6f8cb6f17bb572bbeeab6796043dd4 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
//glowing block of color c (jfx node)
package fallTest;
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;
}
}
|