##- # Author: Brian Tiffin # Dedicated to the public domain # # Date: October, 2016 # Modified: 2016-10-29/02:53-0400 ##+ # # DrawCylinder.icn, demonstrate drawing a cylinder # procedure main() window := open("DrawCylinder", "gl", "bg=black", "buffer=on", "size=400,260", "dim=3")#, "canvas=hidden") WAttrib(window,"light0=on, ambient blue-green","fg=specular white") # A cube DrawCylinder(window, 0.0, 0.19, -2.2, 0.3, 0.4, 0.5) # save image for the document Refresh(window) WSync(window) WriteImage(window, "../images/DrawCylinder.png") close(window) end