import java.applet.*;
import java.awt.*;

public class drawrgb extends Applet {
  
  public void init() {

    System.out.println(">> init <<");
    setBackground(Color.black);
    
  }


  public void start() {

    System.out.println(">> start <<");

  }

  public void paint(Graphics g) {
    System.out.println(">> paint <<");

	   for(int i=1; i<=8;  i++){
			Color red = new Color( i*32-1, 0, 0);
			g.setColor(red);
			g.fillRect(i*30 + 2, 2,28,28);
	   }
	   	   for(int i=1; i<=8;  i++){
			Color green = new Color(  0,i*32-1, 0);
			g.setColor(green);
			g.fillRect(i*30 + 2, 32,28,28);
	   }
	   for(int i=1; i<=8;  i++){
			Color blue = new Color( 0, 0, i*32-1);
			g.setColor(blue);
			g.fillRect(i*30 + 2, 62,28,28);
	   }
	   for(int i=1; i<=8;  i++){
			Color pink = new Color( i*32-1, i*16-1, i*16-1);
			g.setColor(pink);
			g.fillRect(i*30 + 2, 92,28,28);
	   }
	   	   for(int i=1; i<=8;  i++){
			Color lightgreen = new Color(  i*16-1,i*32-1, i*16-1);
			g.setColor(lightgreen);
			g.fillRect(i*30 + 2, 122,28,28);
	   }
	   for(int i=1; i<=8;  i++){
			Color lightblue = new Color( i*16-1, i*16-1, i*32-1);
			g.setColor(lightblue);
			g.fillRect(i*30 + 2, 152,28,28);
	   }
	   	   for(int i=1; i<=8;  i++){
			Color lighterpink = new Color( i*32-1, i*25-1, i*25-1);
			g.setColor(lighterpink);
			g.fillRect(i*30 + 2, 182,28,28);
	   }
	   	   for(int i=1; i<=8;  i++){
			Color lightergreen = new Color(  i*25-1,i*32-1, i*25-1);
			g.setColor(lightergreen);
			g.fillRect(i*30 + 2, 212,28,28);
	   }
	   for(int i=1; i<=8;  i++){
			Color lighterblue = new Color( i*25-1, i*25-1, i*32-1);
			g.setColor(lighterblue);
			g.fillRect(i*30 + 2, 242,28,28);
	   }
	   for(int i=1; i<=8;  i++){
			Color white = new Color( i*32-1, i*32-1, i*32-1);
			g.setColor(white);
			g.fillRect(i*30 + 2, 272,28,28);
	   }


  }

  public void stop() {

    System.out.println(">> stop <<");

  }

}

