1 <!-- manual page source format generated by PolyglotMan v3.0.4, -->
2 <!-- available via anonymous ftp from ftp.cs.berkeley.edu:/ucb/people/phelps/tcltk/rman.tar.Z -->
6 <TITLE>palette(n) manual page</TITLE>
9 <A HREF="#toc">Table of Contents</A><P>
12 <H2><A NAME="sect0" HREF="#toc0">NAME </A></H2>
13 palette - Create and manipulate color palettes <P>
15 <H2><A NAME="sect1" HREF="#toc1">SYNOPSIS </A></H2>
17 <I>option </I></B> ?<I>arg </I>? <P>
19 <H2><A NAME="sect2" HREF="#toc2">DESCRIPTION </A></H2>
21 This command creates palette object, which
22 is used for map visualisation. Palette is array of 256 RGB color specifications,
23 indexed by integers from 0 to 255. Typically palette entry N is used for
24 displaying map class N. Upon creation of object new Tcl command with same
25 name as object is defined and can be used for manipulating palette. <B>palette
26 </B> command returns name of created object. One palette, named <B>defaultpalette
27 </B> is created during initialization of fGIS. In difference of user-created
28 palettes it cannot be modified. <P>
30 <H2><A NAME="sect3" HREF="#toc3">OPTIONS </A></H2>
34 <DT><B>palette read <I>filename </I></B> </DT>
36 palette from specified file. File should confirm EPPL7 clr file syntax.
39 <DT><B>palette parse <I>string </I></B> </DT>
40 <DD>- reads palette from string. String should have same
41 format as EPPL7 clr file. </DD>
43 <DT><B>palette set <I>list </I></B> </DT>
44 <DD>- creates palette from list
45 of color specification. Each element of list should have format #rrggbb.
46 Color names are not supported by palettes. Color specifications are assigned
47 to palette indices in sequentual order. </DD>
49 <DT><B>palette blank </B> </DT>
50 <DD>- creates new palette
51 with all entries set to white (#ffffff). </DD>
57 <DT><B>palette copy <I>paletteName </I></B> </DT>
59 a copy of existing palette. This allows to create modifable copy of default
63 <H2><A NAME="sect4" HREF="#toc4">OBJECT COMMAND </A></H2>
64 Palette object names can be used as command names.
65 They support folowing options:
68 <DT><I>paletteName<B> delete </B></I> - </DT>
72 <DT><I>paletteName<B> get<I> index </I></B></I> </DT>
73 <DD>- return color for given index in palette.
74 Color is returned as #rrggbb, and can be used as color specification in
77 <DT><I>paletteName<B> list </B></I> </DT>
78 <DD>- return list of all colors in palette. This
79 list always contains 256 elements. This list can be used as argument for
80 <B>palette set </B> command, to create same palette. </DD>
82 <DT><I>paletteName<B> print </B></I> </DT>
84 string, containing content of valid EPPL7 clr file, which can be used
85 to reproduce this palette. </DD>
87 <DT><I>paletteName<B> set<I> index value </I></B></I> </DT>
88 <DD>- changes contents
89 of given entry to <I>value </I>. Value should be in form #rrggbb. Other forms of
90 colors, supported by Tk are not supported by palettes. </DD>
93 <H2><A NAME="sect5" HREF="#toc5">SEE ALSO </A></H2>
94 <B><A HREF="patterns.n.html">patterns</B>(n)</A>
95 ,<B><A HREF="fgisRasterColorImage.n.html">fgisRasterColorImage</B>(n)</A>
101 <A NAME="toc"><B>Table of Contents</B></A><P>
103 <LI><A NAME="toc0" HREF="#sect0">NAME</A></LI>
104 <LI><A NAME="toc1" HREF="#sect1">SYNOPSIS</A></LI>
105 <LI><A NAME="toc2" HREF="#sect2">DESCRIPTION</A></LI>
106 <LI><A NAME="toc3" HREF="#sect3">OPTIONS</A></LI>
107 <LI><A NAME="toc4" HREF="#sect4">OBJECT COMMAND</A></LI>
108 <LI><A NAME="toc5" HREF="#sect5">SEE ALSO</A></LI>