Agregue brillo a un rectángulo básico de Java
Tengo un panel de dibujo de rectángulo muy básico, pero me gustaría saber si hay una forma simple de agregar algún tipo de brillo a los rectángulos.
public class Blocks extends JPanel {
public void paintComponent(Graphics g) {
super.paintComponent(g);
this.setBackground(Color.BLACK);
for (int i = 1; i <= totalSteps; i++) {
g.setColor(Color.WHITE);
g.fillRect(100 + i*60, 260, 50, 50);
}
}
}