-
Notifications
You must be signed in to change notification settings - Fork 0
/
color_lut_docs.cpp
273 lines (238 loc) · 51.8 KB
/
color_lut_docs.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
// -*- Mode:C++; Coding:us-ascii-unix; fill-column:158 -*-
/*******************************************************************************************************************************************************.H.S.**/
/**
@file color_lut_docs.cpp
@author Mitch Richling <https://www.mitchr.me>
@brief Produce preview impages for every color scheme -- for documentation.@EOL
@std C++20
@copyright
@parblock
Copyright (c) 1988-2015, Mitchell Jay Richling <https://www.mitchr.me> All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this list of conditions, and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions, and the following disclaimer in the documentation
and/or other materials provided with the distribution.
3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software
without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
DAMAGE.
@endparblock
*/
/*******************************************************************************************************************************************************.H.E.**/
/** @cond exj */
//--------------------------------------------------------------------------------------------------------------------------------------------------------------
#include "ramCanvas.hpp"
//--------------------------------------------------------------------------------------------------------------------------------------------------------------
typedef mjr::color3c8b ct;
typedef mjr::color3c8b::csIntType csIt;
typedef mjr::color3c8b::csNatType csNt;
//--------------------------------------------------------------------------------------------------------------------------------------------------------------
int main(void) {
int tall = 128;
int gap = 8;
mjr::ramCanvas3c8b theRC;
int maxColors = 1024;
theRC.resizeCanvas(maxColors, tall);
for(int x=0;x<maxColors;x++) { theRC.drawLine(x, 0, x, tall, ct::csPLYgrey::c(mjr::genLinMap(x, 0, 1024, 0.0, 1.0))); } theRC.writeTIFFfile("color_lut_docs_csPLYgrey.tiff");
for(int x=0;x<maxColors;x++) { theRC.drawLine(x, 0, x, tall, ct::csPLYquad::c(mjr::genLinMap(x, 0, 1024, 0.0, 1.0))); } theRC.writeTIFFfile("color_lut_docs_csPLYquad.tiff");
for(int x=0;x<maxColors;x++) { theRC.drawLine(x, 0, x, tall, ct::csPLYturbo::c(mjr::genLinMap(x, 0, 1024, 0.0, 1.0))); } theRC.writeTIFFfile("color_lut_docs_csPLYturbo.tiff");
for(int x=0;x<maxColors;x++) { theRC.drawLine(x, 0, x, tall, ct::csPLYparula::c(mjr::genLinMap(x, 0, 1024, 0.0, 1.0))); } theRC.writeTIFFfile("color_lut_docs_csPLYparula.tiff");
for(int x=0;x<maxColors;x++) { theRC.drawLine(x, 0, x, tall, ct::csPLYmagma::c(mjr::genLinMap(x, 0, 1024, 0.0, 1.0))); } theRC.writeTIFFfile("color_lut_docs_csPLYmagma.tiff");
for(int x=0;x<maxColors;x++) { theRC.drawLine(x, 0, x, tall, ct::csPLYinferno::c(mjr::genLinMap(x, 0, 1024, 0.0, 1.0))); } theRC.writeTIFFfile("color_lut_docs_csPLYinferno.tiff");
for(int x=0;x<maxColors;x++) { theRC.drawLine(x, 0, x, tall, ct::csPLYplasma::c(mjr::genLinMap(x, 0, 1024, 0.0, 1.0))); } theRC.writeTIFFfile("color_lut_docs_csPLYplasma.tiff");
for(int x=0;x<maxColors;x++) { theRC.drawLine(x, 0, x, tall, ct::csPLYviridis::c(mjr::genLinMap(x, 0, 1024, 0.0, 1.0))); } theRC.writeTIFFfile("color_lut_docs_csPLYviridis.tiff");
for(int x=0;x<maxColors;x++) { theRC.drawLine(x, 0, x, tall, ct::csPLYcividis::c(mjr::genLinMap(x, 0, 1024, 0.0, 1.0))); } theRC.writeTIFFfile("color_lut_docs_csPLYcividis.tiff");
for(int x=0;x<maxColors;x++) { theRC.drawLine(x, 0, x, tall, ct::csPLYhsvRB::c(mjr::genLinMap(x, 0, 1024, 0.0, 1.0))); } theRC.writeTIFFfile("color_lut_docs_csPLYhsvRB.tiff");
for(int x=0;x<maxColors;x++) { theRC.drawLine(x, 0, x, tall, ct::csCHstd::c(mjr::genLinMap(x, 0, 1024, 0.0, 1.0))); } theRC.writeTIFFfile("color_lut_docs_csCHstd.tiff");
for(int x=0;x<maxColors;x++) { theRC.drawLine(x, 0, x, tall, ct::csCHblu::c(mjr::genLinMap(x, 0, 1024, 0.0, 1.0))); } theRC.writeTIFFfile("color_lut_docs_csCHblu.tiff");
for(int x=0;x<maxColors;x++) { theRC.drawLine(x, 0, x, tall, ct::csCHvio::c(mjr::genLinMap(x, 0, 1024, 0.0, 1.0))); } theRC.writeTIFFfile("color_lut_docs_csCHvio.tiff");
for(int x=0;x<maxColors;x++) { theRC.drawLine(x, 0, x, tall, mjr::color3c8b::csRainbowLA::c(maxColors, x)); } theRC.writeTIFFfile("color_lut_docs_csRainbowLA.tiff");
for(int x=0;x<maxColors;x++) { theRC.drawLine(x, 0, x, tall, mjr::color3c8b::csRainbowCM::c(maxColors, x, mjr::ramCanvas3c8b::cmfInterpolationEnum::FLOOR)); } theRC.writeTIFFfile("color_lut_docs_csRainbowCMf.tiff");
for(int x=0;x<maxColors;x++) { theRC.drawLine(x, 0, x, tall, mjr::color3c8b::csRainbowCM::c(maxColors, x, mjr::ramCanvas3c8b::cmfInterpolationEnum::CEILING)); } theRC.writeTIFFfile("color_lut_docs_csRainbowCMc.tiff");
for(int x=0;x<maxColors;x++) { theRC.drawLine(x, 0, x, tall, mjr::color3c8b::csRainbowCM::c(maxColors, x, mjr::ramCanvas3c8b::cmfInterpolationEnum::NEAREST)); } theRC.writeTIFFfile("color_lut_docs_csRainbowCMn.tiff");
for(int x=0;x<maxColors;x++) { theRC.drawLine(x, 0, x, tall, mjr::color3c8b::csRainbowCM::c(maxColors, x, mjr::ramCanvas3c8b::cmfInterpolationEnum::LINEAR)); } theRC.writeTIFFfile("color_lut_docs_csRainbowCMl.tiff");
for(int x=0;x<maxColors;x++) { theRC.drawLine(x, 0, x, tall, mjr::color3c8b::csRainbowCM::c(maxColors, x, mjr::ramCanvas3c8b::cmfInterpolationEnum::BUMP)); } theRC.writeTIFFfile("color_lut_docs_csRainbowCMb.tiff");
theRC.resizeCanvas(ct::csPGrey3x::numC, tall); for(csIt x=0;x<ct::csPGrey3x::numC;x++) { theRC.drawLine(x, 0, x, tall, ct::csPGrey3x::c(x)); } theRC.writeTIFFfile("color_lut_docs_csPGrey3x.tiff");
theRC.resizeCanvas(ct::csPGrey4x::numC, tall); for(csIt x=0;x<ct::csPGrey4x::numC;x++) { theRC.drawLine(x, 0, x, tall, ct::csPGrey4x::c(x)); } theRC.writeTIFFfile("color_lut_docs_csPGrey4x.tiff");
theRC.resizeCanvas(2*tall+gap, tall);
theRC.clrCanvas("white");
theRC.drawFillRectangle(0, 0, tall, tall, ct::csBin01::c(0)); theRC.drawFillRectangle(tall+gap, 0, 2*tall+gap, tall, ct::csBin01::c(1)); theRC.writeTIFFfile("color_lut_docs_csBin01.tiff");
theRC.drawFillRectangle(0, 0, tall, tall, ct::csBinGB::c(0)); theRC.drawFillRectangle(tall+gap, 0, 2*tall+gap, tall, ct::csBinGB::c(1)); theRC.writeTIFFfile("color_lut_docs_csBinGB.tiff");
theRC.drawFillRectangle(0, 0, tall, tall, ct::csBinRB::c(0)); theRC.drawFillRectangle(tall+gap, 0, 2*tall+gap, tall, ct::csBinRB::c(1)); theRC.writeTIFFfile("color_lut_docs_csBinRB.tiff");
theRC.drawFillRectangle(0, 0, tall, tall, ct::csBinMC::c(0)); theRC.drawFillRectangle(tall+gap, 0, 2*tall+gap, tall, ct::csBinMC::c(1)); theRC.writeTIFFfile("color_lut_docs_csBinMC.tiff");
theRC.drawFillRectangle(0, 0, tall, tall, ct::csBinYC::c(0)); theRC.drawFillRectangle(tall+gap, 0, 2*tall+gap, tall, ct::csBinYC::c(1)); theRC.writeTIFFfile("color_lut_docs_csBinYC.tiff");
theRC.drawFillRectangle(0, 0, tall, tall, ct::csBinRG::c(0)); theRC.drawFillRectangle(tall+gap, 0, 2*tall+gap, tall, ct::csBinRG::c(1)); theRC.writeTIFFfile("color_lut_docs_csBinRG.tiff");
theRC.drawFillRectangle(0, 0, tall, tall, ct::csBinMY::c(0)); theRC.drawFillRectangle(tall+gap, 0, 2*tall+gap, tall, ct::csBinMY::c(1)); theRC.writeTIFFfile("color_lut_docs_csBinMY.tiff");
theRC.resizeCanvas(ct::csPGrey3x::numC, tall); for(csIt x=0;x<ct::csPGrey3x::numC; x++) { theRC.drawLine(x, 0, x, tall, ct::csPGrey3x::c(x)); } theRC.writeTIFFfile("color_lut_docs_csPGrey3x.tiff");
theRC.resizeCanvas(ct::csPGrey4x::numC, tall); for(csIt x=0;x<ct::csPGrey4x::numC; x++) { theRC.drawLine(x, 0, x, tall, ct::csPGrey4x::c(x)); } theRC.writeTIFFfile("color_lut_docs_csPGrey4x.tiff");
theRC.resizeCanvas(ct::csCCsumRGB::numC, tall); for(csIt x=0;x<ct::csCCsumRGB::numC; x++) { theRC.drawLine(x, 0, x, tall, ct::csCCsumRGB::c(x)); } theRC.writeTIFFfile("color_lut_docs_csCCsumRGB.tiff");
theRC.resizeCanvas(ct::csCCsumBGR::numC, tall); for(csIt x=0;x<ct::csCCsumBGR::numC; x++) { theRC.drawLine(x, 0, x, tall, ct::csCCsumBGR::c(x)); } theRC.writeTIFFfile("color_lut_docs_csCCsumBGR.tiff");
theRC.resizeCanvas(ct::csCCsumGRB::numC, tall); for(csIt x=0;x<ct::csCCsumGRB::numC; x++) { theRC.drawLine(x, 0, x, tall, ct::csCCsumGRB::c(x)); } theRC.writeTIFFfile("color_lut_docs_csCCsumGRB.tiff");
theRC.resizeCanvas(ct::csCCsumBRG::numC, tall); for(csIt x=0;x<ct::csCCsumBRG::numC; x++) { theRC.drawLine(x, 0, x, tall, ct::csCCsumBRG::c(x)); } theRC.writeTIFFfile("color_lut_docs_csCCsumBRG.tiff");
theRC.resizeCanvas(ct::csCCsumGBR::numC, tall); for(csIt x=0;x<ct::csCCsumGBR::numC; x++) { theRC.drawLine(x, 0, x, tall, ct::csCCsumGBR::c(x)); } theRC.writeTIFFfile("color_lut_docs_csCCsumGBR.tiff");
theRC.resizeCanvas(ct::csCCsumRBG::numC, tall); for(csIt x=0;x<ct::csCCsumRBG::numC; x++) { theRC.drawLine(x, 0, x, tall, ct::csCCsumRBG::c(x)); } theRC.writeTIFFfile("color_lut_docs_csCCsumRBG.tiff");
theRC.resizeCanvas(ct::csCCudRg::numC, tall); for(csIt x=0;x<ct::csCCudRg::numC; x++) { theRC.drawLine(x, 0, x, tall, ct::csCCudRg::c(x)); } theRC.writeTIFFfile("color_lut_docs_csCCudRg.tiff");
theRC.resizeCanvas(ct::csCCudRb::numC, tall); for(csIt x=0;x<ct::csCCudRb::numC; x++) { theRC.drawLine(x, 0, x, tall, ct::csCCudRb::c(x)); } theRC.writeTIFFfile("color_lut_docs_csCCudRb.tiff");
theRC.resizeCanvas(ct::csCCudGr::numC, tall); for(csIt x=0;x<ct::csCCudGr::numC; x++) { theRC.drawLine(x, 0, x, tall, ct::csCCudGr::c(x)); } theRC.writeTIFFfile("color_lut_docs_csCCudGr.tiff");
theRC.resizeCanvas(ct::csCCudGb::numC, tall); for(csIt x=0;x<ct::csCCudGb::numC; x++) { theRC.drawLine(x, 0, x, tall, ct::csCCudGb::c(x)); } theRC.writeTIFFfile("color_lut_docs_csCCudGb.tiff");
theRC.resizeCanvas(ct::csCCudBr::numC, tall); for(csIt x=0;x<ct::csCCudBr::numC; x++) { theRC.drawLine(x, 0, x, tall, ct::csCCudBr::c(x)); } theRC.writeTIFFfile("color_lut_docs_csCCudBr.tiff");
theRC.resizeCanvas(ct::csCCudBg::numC, tall); for(csIt x=0;x<ct::csCCudBg::numC; x++) { theRC.drawLine(x, 0, x, tall, ct::csCCudBg::c(x)); } theRC.writeTIFFfile("color_lut_docs_csCCudBg.tiff");
theRC.resizeCanvas(ct::csCColdeRainbow::numC, tall); for(csIt x=0;x<ct::csCColdeRainbow::numC; x++) { theRC.drawLine(x, 0, x, tall, ct::csCColdeRainbow::c(x)); } theRC.writeTIFFfile("color_lut_docs_csCColdeRainbow.tiff");
theRC.resizeCanvas(ct::csCColdeIceToWaterToHot::numC, tall); for(csIt x=0;x<ct::csCColdeIceToWaterToHot::numC;x++) { theRC.drawLine(x, 0, x, tall, ct::csCColdeIceToWaterToHot::c(x)); } theRC.writeTIFFfile("color_lut_docs_csCColdeIceToWaterToHot.tiff");
theRC.resizeCanvas(ct::csCColdeColdToHot::numC, tall); for(csIt x=0;x<ct::csCColdeColdToHot::numC; x++) { theRC.drawLine(x, 0, x, tall, ct::csCColdeColdToHot::c(x)); } theRC.writeTIFFfile("color_lut_docs_csCColdeColdToHot.tiff");
theRC.resizeCanvas(ct::csCColdeFireRamp::numC, tall); for(csIt x=0;x<ct::csCColdeFireRamp::numC; x++) { theRC.drawLine(x, 0, x, tall, ct::csCColdeFireRamp::c(x)); } theRC.writeTIFFfile("color_lut_docs_csCColdeFireRamp.tiff");
theRC.resizeCanvas(ct::csCCconsTwo::numC, tall); for(csIt x=0;x<ct::csCCconsTwo::numC; x++) { theRC.drawLine(x, 0, x, tall, ct::csCCconsTwo::c(x)); } theRC.writeTIFFfile("color_lut_docs_csCCconsTwo.tiff");
theRC.resizeCanvas(ct::csCCconsOne::numC, tall); for(csIt x=0;x<ct::csCCconsOne::numC; x++) { theRC.drawLine(x, 0, x, tall, ct::csCCconsOne::c(x)); } theRC.writeTIFFfile("color_lut_docs_csCCconsOne.tiff");
theRC.resizeCanvas(ct::csCCdiag01::numC, tall); for(csIt x=0;x<ct::csCCdiag01::numC; x++) { theRC.drawLine(x, 0, x, tall, ct::csCCdiag01::c(x)); } theRC.writeTIFFfile("color_lut_docs_csCCdiag01.tiff");
theRC.resizeCanvas(ct::csCCdiagCR::numC, tall); for(csIt x=0;x<ct::csCCdiagCR::numC; x++) { theRC.drawLine(x, 0, x, tall, ct::csCCdiagCR::c(x)); } theRC.writeTIFFfile("color_lut_docs_csCCdiagCR.tiff");
theRC.resizeCanvas(ct::csCCdiagMG::numC, tall); for(csIt x=0;x<ct::csCCdiagMG::numC; x++) { theRC.drawLine(x, 0, x, tall, ct::csCCdiagMG::c(x)); } theRC.writeTIFFfile("color_lut_docs_csCCdiagMG.tiff");
theRC.resizeCanvas(ct::csCCdiagYB::numC, tall); for(csIt x=0;x<ct::csCCdiagYB::numC; x++) { theRC.drawLine(x, 0, x, tall, ct::csCCdiagYB::c(x)); } theRC.writeTIFFfile("color_lut_docs_csCCdiagYB.tiff");
theRC.resizeCanvas(ct::csHSLhR::numC, tall); for(csNt x=0;x<ct::csHSLhR::numC; x++) { theRC.drawLine(x, 0, x, tall, ct::csHSLhR::c(x)); } theRC.writeTIFFfile("color_lut_docs_csHSLhR.tiff");
theRC.resizeCanvas(ct::csHSLhG::numC, tall); for(csNt x=0;x<ct::csHSLhG::numC; x++) { theRC.drawLine(x, 0, x, tall, ct::csHSLhG::c(x)); } theRC.writeTIFFfile("color_lut_docs_csHSLhG.tiff");
theRC.resizeCanvas(ct::csHSLhB::numC, tall); for(csNt x=0;x<ct::csHSLhB::numC; x++) { theRC.drawLine(x, 0, x, tall, ct::csHSLhB::c(x)); } theRC.writeTIFFfile("color_lut_docs_csHSLhB.tiff");
theRC.resizeCanvas(ct::csHSLhM::numC, tall); for(csNt x=0;x<ct::csHSLhM::numC; x++) { theRC.drawLine(x, 0, x, tall, ct::csHSLhM::c(x)); } theRC.writeTIFFfile("color_lut_docs_csHSLhM.tiff");
theRC.resizeCanvas(ct::csHSLhY::numC, tall); for(csNt x=0;x<ct::csHSLhY::numC; x++) { theRC.drawLine(x, 0, x, tall, ct::csHSLhY::c(x)); } theRC.writeTIFFfile("color_lut_docs_csHSLhY.tiff");
theRC.resizeCanvas(ct::csHSLhC::numC, tall); for(csNt x=0;x<ct::csHSLhC::numC; x++) { theRC.drawLine(x, 0, x, tall, ct::csHSLhC::c(x)); } theRC.writeTIFFfile("color_lut_docs_csHSLhC.tiff");
theRC.resizeCanvas(ct::csCCdivBWR::numC, tall); for(csNt x=0;x<ct::csCCdivBWR::numC; x++) { theRC.drawLine(x, 0, x, tall, ct::csCCdivBWR::c(x)); } theRC.writeTIFFfile("color_lut_docs_csCCdivBWR.tiff");
theRC.resizeCanvas(ct::csCCdivCWM::numC, tall); for(csNt x=0;x<ct::csCCdivCWM::numC; x++) { theRC.drawLine(x, 0, x, tall, ct::csCCdivCWM::c(x)); } theRC.writeTIFFfile("color_lut_docs_csCCdivCWM.tiff");
theRC.resizeCanvas(ct::csCCu0W::numC, tall); for(csNt x=0;x<ct::csCCu0W::numC; x++) { theRC.drawLine(x, 0, x, tall, ct::csCCu0W::c(x)); } theRC.writeTIFFfile("color_lut_docs_csCCu0W.tiff");
theRC.resizeCanvas(ct::csCCu0R::numC, tall); for(csNt x=0;x<ct::csCCu0R::numC; x++) { theRC.drawLine(x, 0, x, tall, ct::csCCu0R::c(x)); } theRC.writeTIFFfile("color_lut_docs_csCCu0R.tiff");
theRC.resizeCanvas(ct::csCCu0B::numC, tall); for(csNt x=0;x<ct::csCCu0B::numC; x++) { theRC.drawLine(x, 0, x, tall, ct::csCCu0B::c(x)); } theRC.writeTIFFfile("color_lut_docs_csCCu0B.tiff");
theRC.resizeCanvas(ct::csCCu0G::numC, tall); for(csNt x=0;x<ct::csCCu0G::numC; x++) { theRC.drawLine(x, 0, x, tall, ct::csCCu0G::c(x)); } theRC.writeTIFFfile("color_lut_docs_csCCu0G.tiff");
theRC.resizeCanvas(ct::csCCu0C::numC, tall); for(csNt x=0;x<ct::csCCu0C::numC; x++) { theRC.drawLine(x, 0, x, tall, ct::csCCu0C::c(x)); } theRC.writeTIFFfile("color_lut_docs_csCCu0C.tiff");
theRC.resizeCanvas(ct::csCCu0M::numC, tall); for(csNt x=0;x<ct::csCCu0M::numC; x++) { theRC.drawLine(x, 0, x, tall, ct::csCCu0M::c(x)); } theRC.writeTIFFfile("color_lut_docs_csCCu0M.tiff");
theRC.resizeCanvas(ct::csCCu0Y::numC, tall); for(csNt x=0;x<ct::csCCu0Y::numC; x++) { theRC.drawLine(x, 0, x, tall, ct::csCCu0Y::c(x)); } theRC.writeTIFFfile("color_lut_docs_csCCu0Y.tiff");
theRC.resizeCanvas(ct::csCCfractal0RYBCW::numC, tall); for(csNt x=0;x<ct::csCCfractal0RYBCW::numC; x++) { theRC.drawLine(x, 0, x, tall, ct::csCCfractal0RYBCW::c(x)); } theRC.writeTIFFfile("color_lut_docs_csCCfractal0RYBCW.tiff");
theRC.resizeCanvas(ct::csCCfractalYR::numC, tall); for(csNt x=0;x<ct::csCCfractalYR::numC; x++) { theRC.drawLine(x, 0, x, tall, ct::csCCfractalYR::c(x)); } theRC.writeTIFFfile("color_lut_docs_csCCfractalYR.tiff");
theRC.resizeCanvas(ct::csCCfractalYB::numC, tall); for(csNt x=0;x<ct::csCCfractalYB::numC; x++) { theRC.drawLine(x, 0, x, tall, ct::csCCfractalYB::c(x)); } theRC.writeTIFFfile("color_lut_docs_csCCfractalYB.tiff");
theRC.resizeCanvas(ct::csCCwicR::numC, tall); for(csNt x=0;x<ct::csCCwicR::numC; x++) { theRC.drawLine(x, 0, x, tall, ct::csCCwicR::c(x)); } theRC.writeTIFFfile("color_lut_docs_csCCwicR.tiff");
theRC.resizeCanvas(ct::csCCwicG::numC, tall); for(csNt x=0;x<ct::csCCwicG::numC; x++) { theRC.drawLine(x, 0, x, tall, ct::csCCwicG::c(x)); } theRC.writeTIFFfile("color_lut_docs_csCCwicG.tiff");
theRC.resizeCanvas(ct::csCCwicB::numC, tall); for(csNt x=0;x<ct::csCCwicB::numC; x++) { theRC.drawLine(x, 0, x, tall, ct::csCCwicB::c(x)); } theRC.writeTIFFfile("color_lut_docs_csCCwicB.tiff");
theRC.resizeCanvas(ct::csCCwicC::numC, tall); for(csNt x=0;x<ct::csCCwicC::numC; x++) { theRC.drawLine(x, 0, x, tall, ct::csCCwicC::c(x)); } theRC.writeTIFFfile("color_lut_docs_csCCwicC.tiff");
theRC.resizeCanvas(ct::csCCwicM::numC, tall); for(csNt x=0;x<ct::csCCwicM::numC; x++) { theRC.drawLine(x, 0, x, tall, ct::csCCwicM::c(x)); } theRC.writeTIFFfile("color_lut_docs_csCCwicM.tiff");
theRC.resizeCanvas(ct::csCCwicY::numC, tall); for(csNt x=0;x<ct::csCCwicY::numC; x++) { theRC.drawLine(x, 0, x, tall, ct::csCCwicY::c(x)); } theRC.writeTIFFfile("color_lut_docs_csCCwicY.tiff");
int tg = tall+gap;
theRC.resizeCanvas(ct::csCBAccent::maxNumC*tg, tall); theRC.clrCanvas("white");for(csIt x=0;x<ct::csCBAccent::maxNumC; x++) { theRC.drawFillRectangle(x*tg, 0, x*tg+tall, tall, ct::csCBAccent::c(x)); } theRC.writeTIFFfile("color_lut_docs_csCBAccent.tiff");
theRC.resizeCanvas(ct::csCBBlues::maxNumC*tg, tall); theRC.clrCanvas("white");for(csIt x=0;x<ct::csCBBlues::maxNumC; x++) { theRC.drawFillRectangle(x*tg, 0, x*tg+tall, tall, ct::csCBBlues::c(x)); } theRC.writeTIFFfile("color_lut_docs_csCBBlues.tiff");
theRC.resizeCanvas(ct::csCBBrBG::maxNumC*tg, tall); theRC.clrCanvas("white");for(csIt x=0;x<ct::csCBBrBG::maxNumC; x++) { theRC.drawFillRectangle(x*tg, 0, x*tg+tall, tall, ct::csCBBrBG::c(x)); } theRC.writeTIFFfile("color_lut_docs_csCBBrBG.tiff");
theRC.resizeCanvas(ct::csCBBuGn::maxNumC*tg, tall); theRC.clrCanvas("white");for(csIt x=0;x<ct::csCBBuGn::maxNumC; x++) { theRC.drawFillRectangle(x*tg, 0, x*tg+tall, tall, ct::csCBBuGn::c(x)); } theRC.writeTIFFfile("color_lut_docs_csCBBuGn.tiff");
theRC.resizeCanvas(ct::csCBBuPu::maxNumC*tg, tall); theRC.clrCanvas("white");for(csIt x=0;x<ct::csCBBuPu::maxNumC; x++) { theRC.drawFillRectangle(x*tg, 0, x*tg+tall, tall, ct::csCBBuPu::c(x)); } theRC.writeTIFFfile("color_lut_docs_csCBBuPu.tiff");
theRC.resizeCanvas(ct::csCBDark2::maxNumC*tg, tall); theRC.clrCanvas("white");for(csIt x=0;x<ct::csCBDark2::maxNumC; x++) { theRC.drawFillRectangle(x*tg, 0, x*tg+tall, tall, ct::csCBDark2::c(x)); } theRC.writeTIFFfile("color_lut_docs_csCBDark2.tiff");
theRC.resizeCanvas(ct::csCBGnBu::maxNumC*tg, tall); theRC.clrCanvas("white");for(csIt x=0;x<ct::csCBGnBu::maxNumC; x++) { theRC.drawFillRectangle(x*tg, 0, x*tg+tall, tall, ct::csCBGnBu::c(x)); } theRC.writeTIFFfile("color_lut_docs_csCBGnBu.tiff");
theRC.resizeCanvas(ct::csCBGreens::maxNumC*tg, tall); theRC.clrCanvas("white");for(csIt x=0;x<ct::csCBGreens::maxNumC; x++) { theRC.drawFillRectangle(x*tg, 0, x*tg+tall, tall, ct::csCBGreens::c(x)); } theRC.writeTIFFfile("color_lut_docs_csCBGreens.tiff");
theRC.resizeCanvas(ct::csCBGreys::maxNumC*tg, tall); theRC.clrCanvas("white");for(csIt x=0;x<ct::csCBGreys::maxNumC; x++) { theRC.drawFillRectangle(x*tg, 0, x*tg+tall, tall, ct::csCBGreys::c(x)); } theRC.writeTIFFfile("color_lut_docs_csCBGreys.tiff");
theRC.resizeCanvas(ct::csCBOrRd::maxNumC*tg, tall); theRC.clrCanvas("white");for(csIt x=0;x<ct::csCBOrRd::maxNumC; x++) { theRC.drawFillRectangle(x*tg, 0, x*tg+tall, tall, ct::csCBOrRd::c(x)); } theRC.writeTIFFfile("color_lut_docs_csCBOrRd.tiff");
theRC.resizeCanvas(ct::csCBOranges::maxNumC*tg, tall); theRC.clrCanvas("white");for(csIt x=0;x<ct::csCBOranges::maxNumC; x++) { theRC.drawFillRectangle(x*tg, 0, x*tg+tall, tall, ct::csCBOranges::c(x)); } theRC.writeTIFFfile("color_lut_docs_csCBOranges.tiff");
theRC.resizeCanvas(ct::csCBPRGn::maxNumC*tg, tall); theRC.clrCanvas("white");for(csIt x=0;x<ct::csCBPRGn::maxNumC; x++) { theRC.drawFillRectangle(x*tg, 0, x*tg+tall, tall, ct::csCBPRGn::c(x)); } theRC.writeTIFFfile("color_lut_docs_csCBPRGn.tiff");
theRC.resizeCanvas(ct::csCBPaired::maxNumC*tg, tall); theRC.clrCanvas("white");for(csIt x=0;x<ct::csCBPaired::maxNumC; x++) { theRC.drawFillRectangle(x*tg, 0, x*tg+tall, tall, ct::csCBPaired::c(x)); } theRC.writeTIFFfile("color_lut_docs_csCBPaired.tiff");
theRC.resizeCanvas(ct::csCBPastel1::maxNumC*tg, tall); theRC.clrCanvas("white");for(csIt x=0;x<ct::csCBPastel1::maxNumC; x++) { theRC.drawFillRectangle(x*tg, 0, x*tg+tall, tall, ct::csCBPastel1::c(x)); } theRC.writeTIFFfile("color_lut_docs_csCBPastel1.tiff");
theRC.resizeCanvas(ct::csCBPastel2::maxNumC*tg, tall); theRC.clrCanvas("white");for(csIt x=0;x<ct::csCBPastel2::maxNumC; x++) { theRC.drawFillRectangle(x*tg, 0, x*tg+tall, tall, ct::csCBPastel2::c(x)); } theRC.writeTIFFfile("color_lut_docs_csCBPastel2.tiff");
theRC.resizeCanvas(ct::csCBPiYG::maxNumC*tg, tall); theRC.clrCanvas("white");for(csIt x=0;x<ct::csCBPiYG::maxNumC; x++) { theRC.drawFillRectangle(x*tg, 0, x*tg+tall, tall, ct::csCBPiYG::c(x)); } theRC.writeTIFFfile("color_lut_docs_csCBPiYG.tiff");
theRC.resizeCanvas(ct::csCBPuBu::maxNumC*tg, tall); theRC.clrCanvas("white");for(csIt x=0;x<ct::csCBPuBu::maxNumC; x++) { theRC.drawFillRectangle(x*tg, 0, x*tg+tall, tall, ct::csCBPuBu::c(x)); } theRC.writeTIFFfile("color_lut_docs_csCBPuBu.tiff");
theRC.resizeCanvas(ct::csCBPuBuGn::maxNumC*tg, tall); theRC.clrCanvas("white");for(csIt x=0;x<ct::csCBPuBuGn::maxNumC; x++) { theRC.drawFillRectangle(x*tg, 0, x*tg+tall, tall, ct::csCBPuBuGn::c(x)); } theRC.writeTIFFfile("color_lut_docs_csCBPuBuGn.tiff");
theRC.resizeCanvas(ct::csCBPuOr::maxNumC*tg, tall); theRC.clrCanvas("white");for(csIt x=0;x<ct::csCBPuOr::maxNumC; x++) { theRC.drawFillRectangle(x*tg, 0, x*tg+tall, tall, ct::csCBPuOr::c(x)); } theRC.writeTIFFfile("color_lut_docs_csCBPuOr.tiff");
theRC.resizeCanvas(ct::csCBPuRd::maxNumC*tg, tall); theRC.clrCanvas("white");for(csIt x=0;x<ct::csCBPuRd::maxNumC; x++) { theRC.drawFillRectangle(x*tg, 0, x*tg+tall, tall, ct::csCBPuRd::c(x)); } theRC.writeTIFFfile("color_lut_docs_csCBPuRd.tiff");
theRC.resizeCanvas(ct::csCBPurples::maxNumC*tg, tall); theRC.clrCanvas("white");for(csIt x=0;x<ct::csCBPurples::maxNumC; x++) { theRC.drawFillRectangle(x*tg, 0, x*tg+tall, tall, ct::csCBPurples::c(x)); } theRC.writeTIFFfile("color_lut_docs_csCBPurples.tiff");
theRC.resizeCanvas(ct::csCBRdBu::maxNumC*tg, tall); theRC.clrCanvas("white");for(csIt x=0;x<ct::csCBRdBu::maxNumC; x++) { theRC.drawFillRectangle(x*tg, 0, x*tg+tall, tall, ct::csCBRdBu::c(x)); } theRC.writeTIFFfile("color_lut_docs_csCBRdBu.tiff");
theRC.resizeCanvas(ct::csCBRdGy::maxNumC*tg, tall); theRC.clrCanvas("white");for(csIt x=0;x<ct::csCBRdGy::maxNumC; x++) { theRC.drawFillRectangle(x*tg, 0, x*tg+tall, tall, ct::csCBRdGy::c(x)); } theRC.writeTIFFfile("color_lut_docs_csCBRdGy.tiff");
theRC.resizeCanvas(ct::csCBRdPu::maxNumC*tg, tall); theRC.clrCanvas("white");for(csIt x=0;x<ct::csCBRdPu::maxNumC; x++) { theRC.drawFillRectangle(x*tg, 0, x*tg+tall, tall, ct::csCBRdPu::c(x)); } theRC.writeTIFFfile("color_lut_docs_csCBRdPu.tiff");
theRC.resizeCanvas(ct::csCBRdYlBu::maxNumC*tg, tall); theRC.clrCanvas("white");for(csIt x=0;x<ct::csCBRdYlBu::maxNumC; x++) { theRC.drawFillRectangle(x*tg, 0, x*tg+tall, tall, ct::csCBRdYlBu::c(x)); } theRC.writeTIFFfile("color_lut_docs_csCBRdYlBu.tiff");
theRC.resizeCanvas(ct::csCBRdYlGn::maxNumC*tg, tall); theRC.clrCanvas("white");for(csIt x=0;x<ct::csCBRdYlGn::maxNumC; x++) { theRC.drawFillRectangle(x*tg, 0, x*tg+tall, tall, ct::csCBRdYlGn::c(x)); } theRC.writeTIFFfile("color_lut_docs_csCBRdYlGn.tiff");
theRC.resizeCanvas(ct::csCBReds::maxNumC*tg, tall); theRC.clrCanvas("white");for(csIt x=0;x<ct::csCBReds::maxNumC; x++) { theRC.drawFillRectangle(x*tg, 0, x*tg+tall, tall, ct::csCBReds::c(x)); } theRC.writeTIFFfile("color_lut_docs_csCBReds.tiff");
theRC.resizeCanvas(ct::csCBSet1::maxNumC*tg, tall); theRC.clrCanvas("white");for(csIt x=0;x<ct::csCBSet1::maxNumC; x++) { theRC.drawFillRectangle(x*tg, 0, x*tg+tall, tall, ct::csCBSet1::c(x)); } theRC.writeTIFFfile("color_lut_docs_csCBSet1.tiff");
theRC.resizeCanvas(ct::csCBSet2::maxNumC*tg, tall); theRC.clrCanvas("white");for(csIt x=0;x<ct::csCBSet2::maxNumC; x++) { theRC.drawFillRectangle(x*tg, 0, x*tg+tall, tall, ct::csCBSet2::c(x)); } theRC.writeTIFFfile("color_lut_docs_csCBSet2.tiff");
theRC.resizeCanvas(ct::csCBSet3::maxNumC*tg, tall); theRC.clrCanvas("white");for(csIt x=0;x<ct::csCBSet3::maxNumC; x++) { theRC.drawFillRectangle(x*tg, 0, x*tg+tall, tall, ct::csCBSet3::c(x)); } theRC.writeTIFFfile("color_lut_docs_csCBSet3.tiff");
theRC.resizeCanvas(ct::csCBSpectral::maxNumC*tg,tall); theRC.clrCanvas("white");for(csIt x=0;x<ct::csCBSpectral::maxNumC; x++) { theRC.drawFillRectangle(x*tg, 0, x*tg+tall, tall, ct::csCBSpectral::c(x)); } theRC.writeTIFFfile("color_lut_docs_csCBSpectral.tiff");
theRC.resizeCanvas(ct::csCBYlGn::maxNumC*tg, tall); theRC.clrCanvas("white");for(csIt x=0;x<ct::csCBYlGn::maxNumC; x++) { theRC.drawFillRectangle(x*tg, 0, x*tg+tall, tall, ct::csCBYlGn::c(x)); } theRC.writeTIFFfile("color_lut_docs_csCBYlGn.tiff");
theRC.resizeCanvas(ct::csCBYlGnBu::maxNumC*tg, tall); theRC.clrCanvas("white");for(csIt x=0;x<ct::csCBYlGnBu::maxNumC; x++) { theRC.drawFillRectangle(x*tg, 0, x*tg+tall, tall, ct::csCBYlGnBu::c(x)); } theRC.writeTIFFfile("color_lut_docs_csCBYlGnBu.tiff");
theRC.resizeCanvas(ct::csCBYlOrBr::maxNumC*tg, tall); theRC.clrCanvas("white");for(csIt x=0;x<ct::csCBYlOrBr::maxNumC; x++) { theRC.drawFillRectangle(x*tg, 0, x*tg+tall, tall, ct::csCBYlOrBr::c(x)); } theRC.writeTIFFfile("color_lut_docs_csCBYlOrBr.tiff");
theRC.resizeCanvas(ct::csCBYlOrRd::maxNumC*tg, tall); theRC.clrCanvas("white");for(csIt x=0;x<ct::csCBYlOrRd::maxNumC; x++) { theRC.drawFillRectangle(x*tg, 0, x*tg+tall, tall, ct::csCBYlOrRd::c(x)); } theRC.writeTIFFfile("color_lut_docs_csCBYlOrRd.tiff");
// theRC.resizeCanvas(ct::csCBAccent::maxNumC*tg, tall); theRC.clrCanvas("white");for(csIt x=0;x<tg*ct::csCBAccent::maxNumC; x++) { theRC.drawLine(x, 0, x, tall, ct::csCBAccent::c(1.0*x/tg/ct::csCBAccent::maxNumC)); } theRC.writeTIFFfile("color_lut_docs_csCBAccentC.tiff");
theRC.resizeCanvas(ct::csCBAccent::maxNumC*tg, tall); theRC.clrCanvas("white");for(csIt x=0;x<tg*ct::csCBAccent::maxNumC-gap; x++) { theRC.drawLine(x, 0, x, tall, ct::csCBAccent::c( 1.0*x/(tg*ct::csCBAccent::maxNumC-gap))); } theRC.writeTIFFfile("color_lut_docs_csCBAccentC.tiff");
theRC.resizeCanvas(ct::csCBBlues::maxNumC*tg, tall); theRC.clrCanvas("white");for(csIt x=0;x<tg*ct::csCBBlues::maxNumC-gap; x++) { theRC.drawLine(x, 0, x, tall, ct::csCBBlues::c( 1.0*x/(tg*ct::csCBBlues::maxNumC-gap))); } theRC.writeTIFFfile("color_lut_docs_csCBBluesC.tiff");
theRC.resizeCanvas(ct::csCBBrBG::maxNumC*tg, tall); theRC.clrCanvas("white");for(csIt x=0;x<tg*ct::csCBBrBG::maxNumC-gap; x++) { theRC.drawLine(x, 0, x, tall, ct::csCBBrBG::c( 1.0*x/(tg*ct::csCBBrBG::maxNumC-gap))); } theRC.writeTIFFfile("color_lut_docs_csCBBrBGC.tiff");
theRC.resizeCanvas(ct::csCBBuGn::maxNumC*tg, tall); theRC.clrCanvas("white");for(csIt x=0;x<tg*ct::csCBBuGn::maxNumC-gap; x++) { theRC.drawLine(x, 0, x, tall, ct::csCBBuGn::c( 1.0*x/(tg*ct::csCBBuGn::maxNumC-gap))); } theRC.writeTIFFfile("color_lut_docs_csCBBuGnC.tiff");
theRC.resizeCanvas(ct::csCBBuPu::maxNumC*tg, tall); theRC.clrCanvas("white");for(csIt x=0;x<tg*ct::csCBBuPu::maxNumC-gap; x++) { theRC.drawLine(x, 0, x, tall, ct::csCBBuPu::c( 1.0*x/(tg*ct::csCBBuPu::maxNumC-gap))); } theRC.writeTIFFfile("color_lut_docs_csCBBuPuC.tiff");
theRC.resizeCanvas(ct::csCBDark2::maxNumC*tg, tall); theRC.clrCanvas("white");for(csIt x=0;x<tg*ct::csCBDark2::maxNumC-gap; x++) { theRC.drawLine(x, 0, x, tall, ct::csCBDark2::c( 1.0*x/(tg*ct::csCBDark2::maxNumC-gap))); } theRC.writeTIFFfile("color_lut_docs_csCBDark2C.tiff");
theRC.resizeCanvas(ct::csCBGnBu::maxNumC*tg, tall); theRC.clrCanvas("white");for(csIt x=0;x<tg*ct::csCBGnBu::maxNumC-gap; x++) { theRC.drawLine(x, 0, x, tall, ct::csCBGnBu::c( 1.0*x/(tg*ct::csCBGnBu::maxNumC-gap))); } theRC.writeTIFFfile("color_lut_docs_csCBGnBuC.tiff");
theRC.resizeCanvas(ct::csCBGreens::maxNumC*tg, tall); theRC.clrCanvas("white");for(csIt x=0;x<tg*ct::csCBGreens::maxNumC-gap; x++) { theRC.drawLine(x, 0, x, tall, ct::csCBGreens::c( 1.0*x/(tg*ct::csCBGreens::maxNumC-gap))); } theRC.writeTIFFfile("color_lut_docs_csCBGreensC.tiff");
theRC.resizeCanvas(ct::csCBGreys::maxNumC*tg, tall); theRC.clrCanvas("white");for(csIt x=0;x<tg*ct::csCBGreys::maxNumC-gap; x++) { theRC.drawLine(x, 0, x, tall, ct::csCBGreys::c( 1.0*x/(tg*ct::csCBGreys::maxNumC-gap))); } theRC.writeTIFFfile("color_lut_docs_csCBGreysC.tiff");
theRC.resizeCanvas(ct::csCBOrRd::maxNumC*tg, tall); theRC.clrCanvas("white");for(csIt x=0;x<tg*ct::csCBOrRd::maxNumC-gap; x++) { theRC.drawLine(x, 0, x, tall, ct::csCBOrRd::c( 1.0*x/(tg*ct::csCBOrRd::maxNumC-gap))); } theRC.writeTIFFfile("color_lut_docs_csCBOrRdC.tiff");
theRC.resizeCanvas(ct::csCBOranges::maxNumC*tg, tall); theRC.clrCanvas("white");for(csIt x=0;x<tg*ct::csCBOranges::maxNumC-gap; x++) { theRC.drawLine(x, 0, x, tall, ct::csCBOranges::c( 1.0*x/(tg*ct::csCBOranges::maxNumC-gap))); } theRC.writeTIFFfile("color_lut_docs_csCBOrangesC.tiff");
theRC.resizeCanvas(ct::csCBPRGn::maxNumC*tg, tall); theRC.clrCanvas("white");for(csIt x=0;x<tg*ct::csCBPRGn::maxNumC-gap; x++) { theRC.drawLine(x, 0, x, tall, ct::csCBPRGn::c( 1.0*x/(tg*ct::csCBPRGn::maxNumC-gap))); } theRC.writeTIFFfile("color_lut_docs_csCBPRGnC.tiff");
theRC.resizeCanvas(ct::csCBPaired::maxNumC*tg, tall); theRC.clrCanvas("white");for(csIt x=0;x<tg*ct::csCBPaired::maxNumC-gap; x++) { theRC.drawLine(x, 0, x, tall, ct::csCBPaired::c( 1.0*x/(tg*ct::csCBPaired::maxNumC-gap))); } theRC.writeTIFFfile("color_lut_docs_csCBPairedC.tiff");
theRC.resizeCanvas(ct::csCBPastel1::maxNumC*tg, tall); theRC.clrCanvas("white");for(csIt x=0;x<tg*ct::csCBPastel1::maxNumC-gap; x++) { theRC.drawLine(x, 0, x, tall, ct::csCBPastel1::c( 1.0*x/(tg*ct::csCBPastel1::maxNumC-gap))); } theRC.writeTIFFfile("color_lut_docs_csCBPastel1C.tiff");
theRC.resizeCanvas(ct::csCBPastel2::maxNumC*tg, tall); theRC.clrCanvas("white");for(csIt x=0;x<tg*ct::csCBPastel2::maxNumC-gap; x++) { theRC.drawLine(x, 0, x, tall, ct::csCBPastel2::c( 1.0*x/(tg*ct::csCBPastel2::maxNumC-gap))); } theRC.writeTIFFfile("color_lut_docs_csCBPastel2C.tiff");
theRC.resizeCanvas(ct::csCBPiYG::maxNumC*tg, tall); theRC.clrCanvas("white");for(csIt x=0;x<tg*ct::csCBPiYG::maxNumC-gap; x++) { theRC.drawLine(x, 0, x, tall, ct::csCBPiYG::c( 1.0*x/(tg*ct::csCBPiYG::maxNumC-gap))); } theRC.writeTIFFfile("color_lut_docs_csCBPiYGC.tiff");
theRC.resizeCanvas(ct::csCBPuBu::maxNumC*tg, tall); theRC.clrCanvas("white");for(csIt x=0;x<tg*ct::csCBPuBu::maxNumC-gap; x++) { theRC.drawLine(x, 0, x, tall, ct::csCBPuBu::c( 1.0*x/(tg*ct::csCBPuBu::maxNumC-gap))); } theRC.writeTIFFfile("color_lut_docs_csCBPuBuC.tiff");
theRC.resizeCanvas(ct::csCBPuBuGn::maxNumC*tg, tall); theRC.clrCanvas("white");for(csIt x=0;x<tg*ct::csCBPuBuGn::maxNumC-gap; x++) { theRC.drawLine(x, 0, x, tall, ct::csCBPuBuGn::c( 1.0*x/(tg*ct::csCBPuBuGn::maxNumC-gap))); } theRC.writeTIFFfile("color_lut_docs_csCBPuBuGnC.tiff");
theRC.resizeCanvas(ct::csCBPuOr::maxNumC*tg, tall); theRC.clrCanvas("white");for(csIt x=0;x<tg*ct::csCBPuOr::maxNumC-gap; x++) { theRC.drawLine(x, 0, x, tall, ct::csCBPuOr::c( 1.0*x/(tg*ct::csCBPuOr::maxNumC-gap))); } theRC.writeTIFFfile("color_lut_docs_csCBPuOrC.tiff");
theRC.resizeCanvas(ct::csCBPuRd::maxNumC*tg, tall); theRC.clrCanvas("white");for(csIt x=0;x<tg*ct::csCBPuRd::maxNumC-gap; x++) { theRC.drawLine(x, 0, x, tall, ct::csCBPuRd::c( 1.0*x/(tg*ct::csCBPuRd::maxNumC-gap))); } theRC.writeTIFFfile("color_lut_docs_csCBPuRdC.tiff");
theRC.resizeCanvas(ct::csCBPurples::maxNumC*tg, tall); theRC.clrCanvas("white");for(csIt x=0;x<tg*ct::csCBPurples::maxNumC-gap; x++) { theRC.drawLine(x, 0, x, tall, ct::csCBPurples::c( 1.0*x/(tg*ct::csCBPurples::maxNumC-gap))); } theRC.writeTIFFfile("color_lut_docs_csCBPurplesC.tiff");
theRC.resizeCanvas(ct::csCBRdBu::maxNumC*tg, tall); theRC.clrCanvas("white");for(csIt x=0;x<tg*ct::csCBRdBu::maxNumC-gap; x++) { theRC.drawLine(x, 0, x, tall, ct::csCBRdBu::c( 1.0*x/(tg*ct::csCBRdBu::maxNumC-gap))); } theRC.writeTIFFfile("color_lut_docs_csCBRdBuC.tiff");
theRC.resizeCanvas(ct::csCBRdGy::maxNumC*tg, tall); theRC.clrCanvas("white");for(csIt x=0;x<tg*ct::csCBRdGy::maxNumC-gap; x++) { theRC.drawLine(x, 0, x, tall, ct::csCBRdGy::c( 1.0*x/(tg*ct::csCBRdGy::maxNumC-gap))); } theRC.writeTIFFfile("color_lut_docs_csCBRdGyC.tiff");
theRC.resizeCanvas(ct::csCBRdPu::maxNumC*tg, tall); theRC.clrCanvas("white");for(csIt x=0;x<tg*ct::csCBRdPu::maxNumC-gap; x++) { theRC.drawLine(x, 0, x, tall, ct::csCBRdPu::c( 1.0*x/(tg*ct::csCBRdPu::maxNumC-gap))); } theRC.writeTIFFfile("color_lut_docs_csCBRdPuC.tiff");
theRC.resizeCanvas(ct::csCBRdYlBu::maxNumC*tg, tall); theRC.clrCanvas("white");for(csIt x=0;x<tg*ct::csCBRdYlBu::maxNumC-gap; x++) { theRC.drawLine(x, 0, x, tall, ct::csCBRdYlBu::c( 1.0*x/(tg*ct::csCBRdYlBu::maxNumC-gap))); } theRC.writeTIFFfile("color_lut_docs_csCBRdYlBuC.tiff");
theRC.resizeCanvas(ct::csCBRdYlGn::maxNumC*tg, tall); theRC.clrCanvas("white");for(csIt x=0;x<tg*ct::csCBRdYlGn::maxNumC-gap; x++) { theRC.drawLine(x, 0, x, tall, ct::csCBRdYlGn::c( 1.0*x/(tg*ct::csCBRdYlGn::maxNumC-gap))); } theRC.writeTIFFfile("color_lut_docs_csCBRdYlGnC.tiff");
theRC.resizeCanvas(ct::csCBReds::maxNumC*tg, tall); theRC.clrCanvas("white");for(csIt x=0;x<tg*ct::csCBReds::maxNumC-gap; x++) { theRC.drawLine(x, 0, x, tall, ct::csCBReds::c( 1.0*x/(tg*ct::csCBReds::maxNumC-gap))); } theRC.writeTIFFfile("color_lut_docs_csCBRedsC.tiff");
theRC.resizeCanvas(ct::csCBSet1::maxNumC*tg, tall); theRC.clrCanvas("white");for(csIt x=0;x<tg*ct::csCBSet1::maxNumC-gap; x++) { theRC.drawLine(x, 0, x, tall, ct::csCBSet1::c( 1.0*x/(tg*ct::csCBSet1::maxNumC-gap))); } theRC.writeTIFFfile("color_lut_docs_csCBSet1C.tiff");
theRC.resizeCanvas(ct::csCBSet2::maxNumC*tg, tall); theRC.clrCanvas("white");for(csIt x=0;x<tg*ct::csCBSet2::maxNumC-gap; x++) { theRC.drawLine(x, 0, x, tall, ct::csCBSet2::c( 1.0*x/(tg*ct::csCBSet2::maxNumC-gap))); } theRC.writeTIFFfile("color_lut_docs_csCBSet2C.tiff");
theRC.resizeCanvas(ct::csCBSet3::maxNumC*tg, tall); theRC.clrCanvas("white");for(csIt x=0;x<tg*ct::csCBSet3::maxNumC-gap; x++) { theRC.drawLine(x, 0, x, tall, ct::csCBSet3::c( 1.0*x/(tg*ct::csCBSet3::maxNumC-gap))); } theRC.writeTIFFfile("color_lut_docs_csCBSet3C.tiff");
theRC.resizeCanvas(ct::csCBSpectral::maxNumC*tg,tall); theRC.clrCanvas("white");for(csIt x=0;x<tg*ct::csCBSpectral::maxNumC-gap; x++) { theRC.drawLine(x, 0, x, tall, ct::csCBSpectral::c( 1.0*x/(tg*ct::csCBSpectral::maxNumC-gap))); } theRC.writeTIFFfile("color_lut_docs_csCBSpectralC.tiff");
theRC.resizeCanvas(ct::csCBYlGn::maxNumC*tg, tall); theRC.clrCanvas("white");for(csIt x=0;x<tg*ct::csCBYlGn::maxNumC-gap; x++) { theRC.drawLine(x, 0, x, tall, ct::csCBYlGn::c( 1.0*x/(tg*ct::csCBYlGn::maxNumC-gap))); } theRC.writeTIFFfile("color_lut_docs_csCBYlGnC.tiff");
theRC.resizeCanvas(ct::csCBYlGnBu::maxNumC*tg, tall); theRC.clrCanvas("white");for(csIt x=0;x<tg*ct::csCBYlGnBu::maxNumC-gap; x++) { theRC.drawLine(x, 0, x, tall, ct::csCBYlGnBu::c( 1.0*x/(tg*ct::csCBYlGnBu::maxNumC-gap))); } theRC.writeTIFFfile("color_lut_docs_csCBYlGnBuC.tiff");
theRC.resizeCanvas(ct::csCBYlOrBr::maxNumC*tg, tall); theRC.clrCanvas("white");for(csIt x=0;x<tg*ct::csCBYlOrBr::maxNumC-gap; x++) { theRC.drawLine(x, 0, x, tall, ct::csCBYlOrBr::c( 1.0*x/(tg*ct::csCBYlOrBr::maxNumC-gap))); } theRC.writeTIFFfile("color_lut_docs_csCBYlOrBrC.tiff");
theRC.resizeCanvas(ct::csCBYlOrRd::maxNumC*tg, tall); theRC.clrCanvas("white");for(csIt x=0;x<tg*ct::csCBYlOrRd::maxNumC-gap; x++) { theRC.drawLine(x, 0, x, tall, ct::csCBYlOrRd::c( 1.0*x/(tg*ct::csCBYlOrRd::maxNumC-gap))); } theRC.writeTIFFfile("color_lut_docs_csCBYlOrRdC.tiff");
theRC.setIntAxOrientationY( mjr::ramCanvas3c8b::intAxisOrientation::INVERTED);
theRC.resizeCanvas(maxColors, tall); for(int x=0;x<maxColors; x++) { theRC.drawLine(x, 0, x, tall, ct::csFPcircular12::c(1.0*x/maxColors)); } theRC.writeTIFFfile("color_lut_docs_csFPcircular12C.tiff");
theRC.resizeCanvas(maxColors, tall); for(int x=0;x<maxColors; x++) { theRC.drawLine(x, 0, x, tall, ct::csFPcircular24::c(1.0*x/maxColors)); } theRC.writeTIFFfile("color_lut_docs_csFPcircular24C.tiff");
theRC.resizeCanvas(maxColors, tall); for(int x=0;x<maxColors; x++) { theRC.drawLine(x, 0, x, tall, ct::csFPblAqGrYeOrReVi200::c(1.0*x/maxColors)); } theRC.writeTIFFfile("color_lut_docs_csFPblAqGrYeOrReVi200C.tiff");
theRC.resizeCanvas(maxColors, tall); for(int x=0;x<maxColors; x++) { theRC.drawLine(x, 0, x, tall, ct::csFPcmoceanAlgae::c(1.0*x/maxColors)); } theRC.writeTIFFfile("color_lut_docs_csFPcmoceanAlgaeC.tiff");
theRC.resizeCanvas(maxColors, tall); for(int x=0;x<maxColors; x++) { theRC.drawLine(x, 0, x, tall, ct::csFPcmoceanAmp::c(1.0*x/maxColors)); } theRC.writeTIFFfile("color_lut_docs_csFPcmoceanAmpC.tiff");
theRC.resizeCanvas(maxColors, tall); for(int x=0;x<maxColors; x++) { theRC.drawLine(x, 0, x, tall, ct::csFPcmoceanBalance::c(1.0*x/maxColors)); } theRC.writeTIFFfile("color_lut_docs_csFPcmoceanBalanceC.tiff");
theRC.resizeCanvas(maxColors, tall); for(int x=0;x<maxColors; x++) { theRC.drawLine(x, 0, x, tall, ct::csFPcmoceanCurl::c(1.0*x/maxColors)); } theRC.writeTIFFfile("color_lut_docs_csFPcmoceanCurlC.tiff");
theRC.resizeCanvas(maxColors, tall); for(int x=0;x<maxColors; x++) { theRC.drawLine(x, 0, x, tall, ct::csFPcmoceanDeep::c(1.0*x/maxColors)); } theRC.writeTIFFfile("color_lut_docs_csFPcmoceanDeepC.tiff");
theRC.resizeCanvas(maxColors, tall); for(int x=0;x<maxColors; x++) { theRC.drawLine(x, 0, x, tall, ct::csFPcmoceanDense::c(1.0*x/maxColors)); } theRC.writeTIFFfile("color_lut_docs_csFPcmoceanDenseC.tiff");
theRC.resizeCanvas(maxColors, tall); for(int x=0;x<maxColors; x++) { theRC.drawLine(x, 0, x, tall, ct::csFPcmoceanHaline::c(1.0*x/maxColors)); } theRC.writeTIFFfile("color_lut_docs_csFPcmoceanHalineC.tiff");
theRC.resizeCanvas(maxColors, tall); for(int x=0;x<maxColors; x++) { theRC.drawLine(x, 0, x, tall, ct::csFPcmoceanIce::c(1.0*x/maxColors)); } theRC.writeTIFFfile("color_lut_docs_csFPcmoceanIceC.tiff");
theRC.resizeCanvas(maxColors, tall); for(int x=0;x<maxColors; x++) { theRC.drawLine(x, 0, x, tall, ct::csFPcmoceanTempo::c(1.0*x/maxColors)); } theRC.writeTIFFfile("color_lut_docs_csFPcmoceanTempoC.tiff");
theRC.resizeCanvas(maxColors, tall); for(int x=0;x<maxColors; x++) { theRC.drawLine(x, 0, x, tall, ct::csFPmplBrBG::c(1.0*x/maxColors)); } theRC.writeTIFFfile("color_lut_docs_csFPmplBrBGC.tiff");
theRC.resizeCanvas(maxColors, tall); for(int x=0;x<maxColors; x++) { theRC.drawLine(x, 0, x, tall, ct::csFPmplOcean::c(1.0*x/maxColors)); } theRC.writeTIFFfile("color_lut_docs_csFPmplOceanC.tiff");
theRC.resizeCanvas(maxColors, tall); for(int x=0;x<maxColors; x++) { theRC.drawLine(x, 0, x, tall, ct::csFPmplOranges::c(1.0*x/maxColors)); } theRC.writeTIFFfile("color_lut_docs_csFPmplOrangesC.tiff");
theRC.resizeCanvas(maxColors, tall); for(int x=0;x<maxColors; x++) { theRC.drawLine(x, 0, x, tall, ct::csFPneoDdivVegetationA::c(1.0*x/maxColors)); } theRC.writeTIFFfile("color_lut_docs_csFPneoDdivVegetationAC.tiff");
theRC.resizeCanvas(maxColors, tall); for(int x=0;x<maxColors; x++) { theRC.drawLine(x, 0, x, tall, ct::csFPneoDivVegetationC::c(1.0*x/maxColors)); } theRC.writeTIFFfile("color_lut_docs_csFPneoDivVegetationCC.tiff");
theRC.resizeCanvas(maxColors, tall); for(int x=0;x<maxColors; x++) { theRC.drawLine(x, 0, x, tall, ct::csFPneoModisNdvi::c(1.0*x/maxColors)); } theRC.writeTIFFfile("color_lut_docs_csFPneoModisNdviC.tiff");
tall = 64;
tg = tall+gap;
int sd = std::ceil(std::sqrt(ct::csWSnormalVision::numC));
theRC.resizeCanvas(sd*tg-gap, sd*tg-gap); theRC.clrCanvas("white"); for(int x=0;x<(int)ct::csWSnormalVision::numC; x++) { theRC.drawFillRectangle((x%sd)*tg, (x/sd)*tg, (x%sd)*tg+tall, (x/sd)*tg+tall, ct::csWSnormalVision::c(x)); } theRC.writeTIFFfile("color_lut_docs_csWSnormalVision.tiff");
theRC.resizeCanvas(sd*tg-gap, sd*tg-gap); theRC.clrCanvas("white"); for(int x=0;x<(int)ct::csWSprotanopia::numC; x++) { theRC.drawFillRectangle((x%sd)*tg, (x/sd)*tg, (x%sd)*tg+tall, (x/sd)*tg+tall, ct::csWSprotanopia::c(x)); } theRC.writeTIFFfile("color_lut_docs_csWSprotanopia.tiff");
theRC.resizeCanvas(sd*tg-gap, sd*tg-gap); theRC.clrCanvas("white"); for(int x=0;x<(int)ct::csWSdeutanopia::numC; x++) { theRC.drawFillRectangle((x%sd)*tg, (x/sd)*tg, (x%sd)*tg+tall, (x/sd)*tg+tall, ct::csWSdeutanopia::c(x)); } theRC.writeTIFFfile("color_lut_docs_csWSdeutanopia.tiff");
theRC.resizeCanvas(sd*tg-gap, sd*tg-gap); theRC.clrCanvas("white"); for(int x=0;x<(int)ct::csWStritanoptia::numC; x++) { theRC.drawFillRectangle((x%sd)*tg, (x/sd)*tg, (x%sd)*tg+tall, (x/sd)*tg+tall, ct::csWStritanoptia::c(x)); } theRC.writeTIFFfile("color_lut_docs_csWStritanoptia.tiff");
theRC.resizeCanvas(sd*tg-gap, sd*tg-gap); theRC.clrCanvas("white"); for(int x=0;x<(int)ct::csWSprotanopiaAlt::numC; x++) { theRC.drawFillRectangle((x%sd)*tg, (x/sd)*tg, (x%sd)*tg+tall, (x/sd)*tg+tall, ct::csWSprotanopiaAlt::c(x)); } theRC.writeTIFFfile("color_lut_docs_csWSprotanopiaAlt.tiff");
theRC.resizeCanvas(sd*tg-gap, sd*tg-gap); theRC.clrCanvas("white"); for(int x=0;x<(int)ct::csWSdeutanopiaAlt::numC; x++) { theRC.drawFillRectangle((x%sd)*tg, (x/sd)*tg, (x%sd)*tg+tall, (x/sd)*tg+tall, ct::csWSdeutanopiaAlt::c(x)); } theRC.writeTIFFfile("color_lut_docs_csWSdeutanopiaAlt.tiff");
theRC.resizeCanvas(sd*tg-gap, sd*tg-gap); theRC.clrCanvas("white"); for(int x=0;x<(int)ct::csWStritanoptiaAlt::numC; x++) { theRC.drawFillRectangle((x%sd)*tg, (x/sd)*tg, (x%sd)*tg+tall, (x/sd)*tg+tall, ct::csWStritanoptiaAlt::c(x)); } theRC.writeTIFFfile("color_lut_docs_csWStritanoptiaAlt.tiff");
sd = std::ceil(std::sqrt(ct::csFPcircular12::numC)); theRC.resizeCanvas(sd*tg-gap, sd*tg-gap); theRC.clrCanvas("white"); for(int x=0;x<(int)ct::csFPcircular12::numC; x++) { theRC.drawFillRectangle((x%sd)*tg, (x/sd)*tg, (x%sd)*tg+tall, (x/sd)*tg+tall, ct::csFPcircular12::c((csIt)x)); } theRC.writeTIFFfile("color_lut_docs_csFPcircular12.tiff");
sd = std::ceil(std::sqrt(ct::csFPcircular24::numC)); theRC.resizeCanvas(sd*tg-gap, sd*tg-gap); theRC.clrCanvas("white"); for(int x=0;x<(int)ct::csFPcircular24::numC; x++) { theRC.drawFillRectangle((x%sd)*tg, (x/sd)*tg, (x%sd)*tg+tall, (x/sd)*tg+tall, ct::csFPcircular24::c((csIt)x)); } theRC.writeTIFFfile("color_lut_docs_csFPcircular24.tiff");
sd = std::ceil(std::sqrt(ct::csFPblAqGrYeOrReVi200::numC)); theRC.resizeCanvas(sd*tg-gap, sd*tg-gap); theRC.clrCanvas("white"); for(int x=0;x<(int)ct::csFPblAqGrYeOrReVi200::numC; x++) { theRC.drawFillRectangle((x%sd)*tg, (x/sd)*tg, (x%sd)*tg+tall, (x/sd)*tg+tall, ct::csFPblAqGrYeOrReVi200::c((csIt)x)); } theRC.writeTIFFfile("color_lut_docs_csFPblAqGrYeOrReVi200.tiff");
sd = std::ceil(std::sqrt(ct::csFPcmoceanAlgae::numC)); theRC.resizeCanvas(sd*tg-gap, sd*tg-gap); theRC.clrCanvas("white"); for(int x=0;x<(int)ct::csFPcmoceanAlgae::numC; x++) { theRC.drawFillRectangle((x%sd)*tg, (x/sd)*tg, (x%sd)*tg+tall, (x/sd)*tg+tall, ct::csFPcmoceanAlgae::c((csIt)x)); } theRC.writeTIFFfile("color_lut_docs_csFPcmoceanAlgae.tiff");
sd = std::ceil(std::sqrt(ct::csFPcmoceanAmp::numC)); theRC.resizeCanvas(sd*tg-gap, sd*tg-gap); theRC.clrCanvas("white"); for(int x=0;x<(int)ct::csFPcmoceanAmp::numC; x++) { theRC.drawFillRectangle((x%sd)*tg, (x/sd)*tg, (x%sd)*tg+tall, (x/sd)*tg+tall, ct::csFPcmoceanAmp::c((csIt)x)); } theRC.writeTIFFfile("color_lut_docs_csFPcmoceanAmp.tiff");
sd = std::ceil(std::sqrt(ct::csFPcmoceanBalance::numC)); theRC.resizeCanvas(sd*tg-gap, sd*tg-gap); theRC.clrCanvas("white"); for(int x=0;x<(int)ct::csFPcmoceanBalance::numC; x++) { theRC.drawFillRectangle((x%sd)*tg, (x/sd)*tg, (x%sd)*tg+tall, (x/sd)*tg+tall, ct::csFPcmoceanBalance::c((csIt)x)); } theRC.writeTIFFfile("color_lut_docs_csFPcmoceanBalance.tiff");
sd = std::ceil(std::sqrt(ct::csFPcmoceanCurl::numC)); theRC.resizeCanvas(sd*tg-gap, sd*tg-gap); theRC.clrCanvas("white"); for(int x=0;x<(int)ct::csFPcmoceanCurl::numC; x++) { theRC.drawFillRectangle((x%sd)*tg, (x/sd)*tg, (x%sd)*tg+tall, (x/sd)*tg+tall, ct::csFPcmoceanCurl::c((csIt)x)); } theRC.writeTIFFfile("color_lut_docs_csFPcmoceanCurl.tiff");
sd = std::ceil(std::sqrt(ct::csFPcmoceanDeep::numC)); theRC.resizeCanvas(sd*tg-gap, sd*tg-gap); theRC.clrCanvas("white"); for(int x=0;x<(int)ct::csFPcmoceanDeep::numC; x++) { theRC.drawFillRectangle((x%sd)*tg, (x/sd)*tg, (x%sd)*tg+tall, (x/sd)*tg+tall, ct::csFPcmoceanDeep::c((csIt)x)); } theRC.writeTIFFfile("color_lut_docs_csFPcmoceanDeep.tiff");
sd = std::ceil(std::sqrt(ct::csFPcmoceanDense::numC)); theRC.resizeCanvas(sd*tg-gap, sd*tg-gap); theRC.clrCanvas("white"); for(int x=0;x<(int)ct::csFPcmoceanDense::numC; x++) { theRC.drawFillRectangle((x%sd)*tg, (x/sd)*tg, (x%sd)*tg+tall, (x/sd)*tg+tall, ct::csFPcmoceanDense::c((csIt)x)); } theRC.writeTIFFfile("color_lut_docs_csFPcmoceanDense.tiff");
sd = std::ceil(std::sqrt(ct::csFPcmoceanHaline::numC)); theRC.resizeCanvas(sd*tg-gap, sd*tg-gap); theRC.clrCanvas("white"); for(int x=0;x<(int)ct::csFPcmoceanHaline::numC; x++) { theRC.drawFillRectangle((x%sd)*tg, (x/sd)*tg, (x%sd)*tg+tall, (x/sd)*tg+tall, ct::csFPcmoceanHaline::c((csIt)x)); } theRC.writeTIFFfile("color_lut_docs_csFPcmoceanHaline.tiff");
sd = std::ceil(std::sqrt(ct::csFPcmoceanIce::numC)); theRC.resizeCanvas(sd*tg-gap, sd*tg-gap); theRC.clrCanvas("white"); for(int x=0;x<(int)ct::csFPcmoceanIce::numC; x++) { theRC.drawFillRectangle((x%sd)*tg, (x/sd)*tg, (x%sd)*tg+tall, (x/sd)*tg+tall, ct::csFPcmoceanIce::c((csIt)x)); } theRC.writeTIFFfile("color_lut_docs_csFPcmoceanIce.tiff");
sd = std::ceil(std::sqrt(ct::csFPcmoceanTempo::numC)); theRC.resizeCanvas(sd*tg-gap, sd*tg-gap); theRC.clrCanvas("white"); for(int x=0;x<(int)ct::csFPcmoceanTempo::numC; x++) { theRC.drawFillRectangle((x%sd)*tg, (x/sd)*tg, (x%sd)*tg+tall, (x/sd)*tg+tall, ct::csFPcmoceanTempo::c((csIt)x)); } theRC.writeTIFFfile("color_lut_docs_csFPcmoceanTempo.tiff");
sd = std::ceil(std::sqrt(ct::csFPmplBrBG::numC)); theRC.resizeCanvas(sd*tg-gap, sd*tg-gap); theRC.clrCanvas("white"); for(int x=0;x<(int)ct::csFPmplBrBG::numC; x++) { theRC.drawFillRectangle((x%sd)*tg, (x/sd)*tg, (x%sd)*tg+tall, (x/sd)*tg+tall, ct::csFPmplBrBG::c((csIt)x)); } theRC.writeTIFFfile("color_lut_docs_csFPmplBrBG.tiff");
sd = std::ceil(std::sqrt(ct::csFPmplOcean::numC)); theRC.resizeCanvas(sd*tg-gap, sd*tg-gap); theRC.clrCanvas("white"); for(int x=0;x<(int)ct::csFPmplOcean::numC; x++) { theRC.drawFillRectangle((x%sd)*tg, (x/sd)*tg, (x%sd)*tg+tall, (x/sd)*tg+tall, ct::csFPmplOcean::c((csIt)x)); } theRC.writeTIFFfile("color_lut_docs_csFPmplOcean.tiff");
sd = std::ceil(std::sqrt(ct::csFPmplOranges::numC)); theRC.resizeCanvas(sd*tg-gap, sd*tg-gap); theRC.clrCanvas("white"); for(int x=0;x<(int)ct::csFPmplOranges::numC; x++) { theRC.drawFillRectangle((x%sd)*tg, (x/sd)*tg, (x%sd)*tg+tall, (x/sd)*tg+tall, ct::csFPmplOranges::c((csIt)x)); } theRC.writeTIFFfile("color_lut_docs_csFPmplOranges.tiff");
sd = std::ceil(std::sqrt(ct::csFPneoDdivVegetationA::numC)); theRC.resizeCanvas(sd*tg-gap, sd*tg-gap); theRC.clrCanvas("white"); for(int x=0;x<(int)ct::csFPneoDdivVegetationA::numC; x++) { theRC.drawFillRectangle((x%sd)*tg, (x/sd)*tg, (x%sd)*tg+tall, (x/sd)*tg+tall, ct::csFPneoDdivVegetationA::c((csIt)x)); } theRC.writeTIFFfile("color_lut_docs_csFPneoDdivVegetationA.tiff");
sd = std::ceil(std::sqrt(ct::csFPneoDivVegetationC::numC)); theRC.resizeCanvas(sd*tg-gap, sd*tg-gap); theRC.clrCanvas("white"); for(int x=0;x<(int)ct::csFPneoDivVegetationC::numC; x++) { theRC.drawFillRectangle((x%sd)*tg, (x/sd)*tg, (x%sd)*tg+tall, (x/sd)*tg+tall, ct::csFPneoDivVegetationC::c((csIt)x)); } theRC.writeTIFFfile("color_lut_docs_csFPneoDivVegetationC.tiff");
sd = std::ceil(std::sqrt(ct::csFPneoModisNdvi::numC)); theRC.resizeCanvas(sd*tg-gap, sd*tg-gap); theRC.clrCanvas("white"); for(int x=0;x<(int)ct::csFPneoModisNdvi::numC; x++) { theRC.drawFillRectangle((x%sd)*tg, (x/sd)*tg, (x%sd)*tg+tall, (x/sd)*tg+tall, ct::csFPneoModisNdvi::c((csIt)x)); } theRC.writeTIFFfile("color_lut_docs_csFPneoModisNdvi.tiff");
}
/** @endcond */