/*--------------------------------------
 *P13Graphics01.java is copyright 2018 SoftWarr
 *24887Tenn Oaks Road
 *Hockley, TX 77447

-------------------------------------------------------------------------
Graphics	   
*/
import java.awt.*;
import static java.lang.System.*;
import static java.lang.Math.*;
public class p13Graphics01  
{
	public static void main(String args[])
	{
		new Pictures();
    }// end main
}



class Pictures extends Frame 
{
	public Pictures()   //constructor
	{
		setSize(1024,768);
		setVisible(true);
	}	
public void paint(Graphics pen)
   {
        pen.setFont(new Font("Timesroman",Font.ITALIC,48));
        pen.drawString("Graphics",150,100);
        pen.setFont(new Font("Timesroman",0,22));
        for(int t = 0 ; t < 1024;t+=40)
          {
             pen.setColor(new Color ((int)(random() *256),
                          (int)(random() *256),
                          (int)(random() *256)));
             pen.drawString("This is fun",t+50,t+ 70);
          }   
   	   
   	
   }
} //class
