##- # Author: Brian Tiffin # Dedicated to the public domain # # Date: March, 2017 # Modified: 2017-03-15/15:35-0400 btiffin ##+ # # PushRotate.icn, demonstrate matrix push with rotatation # Currently a work in progress # link fullimag procedure main() window := open("PushRotate", "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) Refresh(window) MatrixMode(window, "projection") PushRotate(window, 90, 0, 1, 1) write(fullimage(PopMatrix(window))) # save image for the document Refresh(window) WSync(window) WriteImage(window, "../images/PushRotate.png") close(window) end