##- # Author: Brian Tiffin # Dedicated to the public domain # # Date: November, 2016 # Modified: 2016-11-27/18:05-0500 ##+ # # WindowContents.icn, demonstrate WindowContents list # link ximage procedure main() window := open("WindowContents", "gl", "bg=black", "buffer=on", "size=400,260", "dim=3")#, "canvas=hidden") WAttrib(window,"light0=on, ambient blue-green","fg=specular white") # A torus DrawTorus(window, 0.0,0.19,-2.2, 0.3,0.4) # show the window contents list Refresh(window) write(ximage(WindowContents(window))) # save the image WriteImage(window, "../images/WindowContents.png") close(window) end