##- # Author: Brian Tiffin # Dedicated to the public domain # # Date: September, 2016 # Modified: 2016-11-10/21:36-0500 ##+ # # DrawCircle.icn, demonstrate drawing a circle # procedure main() w := open("DrawCircle", "g", "size=40,40", "canvas=hidden") # A full circle Fg(w, "vivid orange") DrawCircle(w, 20, 20, 18) # A partial circle Fg(w, "blue") DrawCircle(w, 20, 20, 9, 0.0, &pi) # save image for the document WSync(w) WriteImage(w, "../images/DrawCircle.png") close(w) end