| GetColor | TCL UTILITIES USER MANUAL | GetColor |
|---|
| GetColor  |
|
| V | - | Value |
| cMap | - | Color map incormation array generated by the PLTcolorMap routine. |
# INITIALIZE the default gui settings
GUIprefsRead
# SET a window size
set GphInfo(xsScrL) 600
set GphInfo(ysScrL) 500
set GphInfo(xScrL) 600
set GphInfo(yScrL) 500
# START graphics
GraphicsOn TK RainBow SWAP
# SET up a graphics window on the canvas.
GenWindow 0 0.0 0.0 0.0 1.0 1.0 0.0 -1.0 -1.0 0.0 1.0 1.0 0.0
PLTcolorMap 0.0 2000.0 LINEAR NO cMap
set X -0.9
while { $X < 0.9 } {
set V [expr int([TUdataRnd1 R 1 P 2000.0])]
set C [GetColor $V cMap]
PlotColor HOLD $C $C
set nX [expr $X + .025]
Box 0 $X -0.25 0.0 $nX 0.25 0.0
set X $nX
}
| March 2, 2007 |
|---|