##- # Author: Brian Tiffin # Dedicated to the public domain # # Date: November, 2016 # Modified: 2016-11-25/19:34-0500 ##+ # # Refresh.icn, demonstrate 3D redraw # procedure main() window := open("Refresh", "gl", "bg=black", "buffer=on", "size=400,240", "dim=3")#, "canvas=hidden") WAttrib(window,"light0=on, ambient blue-green","fg=specular white") # A sphere DrawSphere(window, 0.0, 0.19, -2.2, 0.3) # save image for the document, refresh is required for the WriteImage # but there is a bug with Unicon opengl hidden canvas on GNU/Linux Refresh(window) WriteImage(window, "../images/Refresh.png") close(window) end