//URLSHELL.java - Produces a single layer of a shell (called by URLTURT)
// by Randy McGirr Trona 2011
import java.awt.*;
import java.util.*;

public class URLSHELL{

  Color colors[] = { Color.red, Color.yellow, Color.green, Color.cyan,
                     new Color(125,125,125), Color.magenta, new Color(99,50,255), 
                     Color.orange, Color.pink };
  Random r;
  int x, y, size, pick;
  String url[]={"b","l","a","c","k","t","u","r","t","l","e",".","u","s"};
  
  URLSHELL(int a, int b, int s){
    x=a;
    y=b;
    size=s;
    r = new Random();
  }
  
  public void draw(Graphics g){
    g.setFont(new Font("Courier",Font.BOLD,size));
    for(int i=0; i<url.length; i++){
      pick=Math.abs(r.nextInt()%colors.length);
      g.setColor(colors[pick]);
      g.drawString(url[i], x+i*size/2, y);
    }
  }
}
