FileDocCategorySizeDatePackage
DrawCrowd2.javaAPI DocExample1514Tue Jan 08 16:37:20 GMT 2002None

DrawCrowd2

public class DrawCrowd2 extends Applet

Fields Summary
Man
M1
Constructors Summary
Methods Summary
public voidinit()

		M1=new Man();
	
public voidpaint(java.awt.Graphics g)

		Color shirtColour;
		boolean flipFlop = true;
		for (int col=0; col< 500; col+=50)
			for (int row=0; row <400; row+=100)
			{
			flipFlop = !flipFlop;
			if (flipFlop)
				shirtColour = Color.red;
			else 
				shirtColour = Color.blue;
			
			M1.drawMan(col,row, shirtColour); // at the moment we simply supply
			//M1.drawMan(150,150); // parameters for position, but could 
			//M1.drawMan(220,75);  // adapt to include size & colour
			}