]> www.wagner.pp.ru Git - sites/home_page.git/blob - geography/fGIS/man/palette.n.html
Added fGIS
[sites/home_page.git] / geography / fGIS / man / palette.n.html
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 -->
3
4 <HTML>
5 <HEAD>
6 <TITLE>palette(n) manual page</TITLE>
7 </HEAD>
8 <BODY>
9 <A HREF="#toc">Table of Contents</A><P>
10 <P>
11   
12 <H2><A NAME="sect0" HREF="#toc0">NAME </A></H2>
13 palette - Create and manipulate color palettes  <P>
14   
15 <H2><A NAME="sect1" HREF="#toc1">SYNOPSIS </A></H2>
16 <B> palette 
17 <I>option </I></B> ?<I>arg </I>? <P>
18   
19 <H2><A NAME="sect2" HREF="#toc2">DESCRIPTION </A></H2>
20 <P>
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>
29   
30 <H2><A NAME="sect3" HREF="#toc3">OPTIONS </A></H2>
31
32 <DL>
33
34 <DT><B>palette read <I>filename </I></B>  </DT>
35 <DD>- reads 
36 palette from specified file. File should confirm EPPL7 clr file syntax. 
37 </DD>
38
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>
42
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>
48
49 <DT><B>palette blank </B>  </DT>
50 <DD>- creates new palette 
51 with all entries set to white (#ffffff). </DD>
52 </DL>
53 <P>
54  
55 <DL>
56
57 <DT><B>palette copy <I>paletteName </I></B>  </DT>
58 <DD>- creates 
59 a copy of existing palette. This allows to create modifable copy of default 
60 palette. </DD>
61 </DL>
62  
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: 
66 <DL>
67
68 <DT><I>paletteName<B> delete </B></I> -  </DT>
69 <DD>destroys palette 
70 object.  </DD>
71
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 
75 Tk commands. </DD>
76
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>
81
82 <DT><I>paletteName<B> print </B></I>  </DT>
83 <DD>- returns 
84 string, containing content of valid EPPL7 clr file, which can be used 
85 to reproduce this palette. </DD>
86
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>
91 </DL>
92  
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>
96
97 <P>
98  <P>
99
100 <HR><P>
101 <A NAME="toc"><B>Table of Contents</B></A><P>
102 <UL>
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>
109 </UL>
110 </BODY></HTML>