import java.awt.Color; public class Beacon { public static final int RADIUS = 15; int x, y; // location of the beacon at any time Color col; // color of the beacon Beacon(int bx, int by) { x = bx; y = by; col = new Color(55 + (int)(Math.random()*200), 55 + (int)(Math.random()*200), 55 + (int)(Math.random()*200)); } }