Thank you very much. This sounds much like what I need. The only question is, is it absolutely necessary to have a 1x1 image for each possible color beforehand? The program is not very scaleable this way. Can Tk::Images or Tk::Photos be created on the fly by specifying the colors of the pixels (or pixel as the case may be)?