##- # Author: Brian Tiffin # Dedicated to the public domain # # Date: October 2016 # Modified: 2016-10-18/23:17-0400 ##+ # # DrawSegment.icn, demonstrate drawing points in 2D # procedure main() &window := open("DrawSegment", "g", "size=45,30", "canvas=hidden") Fg("vivid orange") every x := 10 to 22 by 4 do every y := 10 to 16 do DrawSegment(x,y, x+5,y-5) # save image for the document WSync() WriteImage("../images/DrawSegment.png") close(&window) end