##- # Author: Brian Tiffin # Dedicated to the public domain # # Date started: December 2016 # Modified: 2016-12-22/21:10-0500 ##+ # # PaletteKey.icn, demonstrate getting colour mapping key # procedure main() &window := open("PaletteKey", "g", "size=85,40", "canvas=hidden") # colour palettes are mapped using character data keys write(PaletteKey("c1", "blue")) # save image for the document WSync() WriteImage("../images/PaletteKey.png") close(&window) end