displays contents of a graphics window
INCLUDE 'graphlib.h' enddraw(graphwin)
enddraw(Handle) (i)
handle(Handle) (i) Virtual file handle associated with the window.
This predicate closes the ´metafile´ containing the graphics information for the window associated with Handle and displays its contents. Graphics commands such as filledpolygon or filledellipse executed after an enddraw command will be recorded in a new metafile, allowing a hidden redraw.
makegraphwin(Handle,100,100,"Graphic Demo"), filledpolygon(Handle, Style, [10,10,90,10,90,90,10,90]), enddraw(Handle), ... removewindow(Handle,1),!.
No runtime errors.
prolog-process, client-server, object
makegraphwin , filledellipse , filledpolygon