HELP SHOWPALETTE Chris Thornton, May 25 1994 This procedure can be used to set up interactive colour palettes under X on a colour screen. showpalette('mypalette') This will set up a default palette called 'mypalette' and return a one-element vector. This vector always contains the current, selected colour. To select colours from the palette you click on them, usually with the left mouse button. The colour and its name or RGB value are then shown in the selection area at the bottom of the palette. To unselect a colour you click on it where it appears in the selection area. To redisplay the palette (eg. after resizing its window) click close to the bottom, right corner of the window. showpalette('mypalette', [red green blue pink]) This will set up a palette showing the specified colours and return a one-element vector which always contains the current selection. showpalette('mypalette', [red green blue pink], 3) This will set up a palette showing the specified colours and return a three-element vector which always contains the current selections. showpalette('mypalette', [red yellow blue pink], {red blue}) This will set up a palette showing the specified colours and return a two-element vector which always contains the current selections and which is initialised to contain `red' and `blue'. --- ________________$poplocal/local/help//////___________showpalette --- _________Copyright __________University __of ______Sussex _____1997. ___All ______rights _________reserved.