opens a new graphics window
INCLUDE 'graphlib.h' makegraphwin(graphwin,100,100,"Graphics")
makegraphwin(Handle,SizeX,SizeY,TitleString) (x,i,i,i)
handle(Handle) (i) Virtual file handle to be associated with the window.
void(Handle) (o) Real window handle returned by the host.
integer(SizeX) (i) Horizontal size in virtual units.
integer(SizeY) (i) Vertical size in virtual units.
string(TitleString) (i) Title of the window.
This predicate opens a new graphics window on the screen. The SizeX and SizeY parameters determine the ´logical size´ of the window, which is the extent of the visible coordinate system. If the user resizes the window on screen, this ´size´ is not changed, the displayed figure is rescaled to fit into the window (with aspect ratio 1:1).
makegraphwin(Handle,100,100,"Graphic Demo"), filledpolygon(Handle,
removewindow(Handle,1),!.
No runtime errors.
prolog-process, client-server, object
enddraw , filledellipse , filledpolygon