@Override
    public void onDraw(Graphics G, int viewX, int viewY) {
        if (X>viewX&&X<viewX+300&&Y>viewY&&Y<viewY+300)
        {
            G.setColor(Color.yellow);
            int x = (int)X+radius-r.nextInt(radius*2)-viewX;
            int y =  (int)Y+radius-r.nextInt(radius*2)-viewY;
            G.drawLine(x,y, x+radius-r.nextInt(radius*2), y+radius-r.nextInt(radius*2));
            G.drawLine((int)x+radius-r.nextInt(radius*2), y+radius-r.nextInt(radius*2), (int)X+radius-r.nextInt(radius*2)-viewX, (int)Y+radius-r.nextInt(radius*2)-viewY);
            
            G.setColor(Color.white);
            G.drawLine((int)X+radius-r.nextInt(radius*2)-viewX, (int)Y+radius-r.nextInt(radius*2)-viewY, (int)X+radius-r.nextInt(radius*2)-viewX, (int)Y+radius-r.nextInt(radius*2)-viewY);
        }
    }