##- # Author: Brian Tiffin # Dedicated to the public domain # # Date: October 2016 # Modified: 2016-10-30/12:21-0400 ##+ # # DrawPolygon.icn, demonstrate drawing polygons # procedure main() &window := open("DrawPolygon", "g", "size=45,30", "canvas=hidden") # a polygon using the procedural apply operator Fg("vivid orange") points := [5,5, 17,17, 5,17, 5,5] DrawPolygon!points # save image for the document WSync() WriteImage("../images/DrawPolygon.png") close(&window) end