MODULE simplegraph;
(* minimal graphics program *)
(* Author: Andrew Tridgell, March 1994 *)

(* import the graphics routines *)
IMPORT Graph;

BEGIN (* simplegraph *)

  (* start up the graphics with a 300 by 300 window *)
  Graph.StartGraphics(300,300, FALSE);

  (* draw one line *)
  Graph.DrawLine(10,10,100,200);

  (* wait for a mouse click *)
  Graph.WaitForButtonPress;

  (* close the graphics window *)
  Graph.EndGraphics;

END simplegraph.
