##- # Author: Brian Tiffin # Dedicated to the public domain # # Date: November, 2016 # Modified: 2016-11-28/15:19-0500 ##+ # # Pixel.icn, demonstrate the Pixel value generator # procedure main() &window := open("Pixel", "g", "size=45,40", "canvas=hidden") # Some lines Fg("vivid orange") DrawLine(1,0, 30,10, 30,15) Fg("blue") DrawLine(0,0, 10,15, 14,15) Fg("green") DrawLine(1,1, 29,14) # generate the top corner pixel values, down and then to the right every write(image(Pixel(0, 0, 4, 4))) # save image for the document WSync() WriteImage("../images/Pixel.png") close(&window) end