##- # Author: Brian Tiffin # Dedicated to the public domain # # Date: October, 2016 # Modified: 2016-12-18/20:23-0500 ##+ # # Eye.icn, display the viewport reference # procedure main() w := open("Eye", "gl", "bg=red", "size=400,300")#, "canvas=hidden") WAttrib(w,"light0=on, ambient blue-green","bg=white", "fg=ambient yellow") # A disk DrawDisk(w, 0.4,-0.5,-4.0, 0.3,1.0) write(Eye(w)) # save image for the document WSync(w) Refresh(w) WAttrib(w, "eyepos=4,-4,8.0") WSync(w) Refresh(w) write(Eye(w)) WAttrib(w, "eyedir=1,0,0.4") Refresh(w) write(Eye(w)) WriteImage(w, "../images/Eye.png") close(w) end