-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlist.pov
231 lines (205 loc) · 4.61 KB
/
list.pov
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
//------------------------------------------------------------------------
//
// Persistence of Vision Ray Tracer version 3.8
// Scene Description Language (SDL)
//
// Deminstration of colormaps
//
// File: usage.pov
// Version: 1.0
// Last updated: 13-Feb-2023
//
// Author: Sergey Yanenko "Yesbird", 2023
// e-mail: See posts in news.povray.org
//
//------------------------------------------------------------------------
#include "colormaps.inc"
#version 3.8;
global_settings { assumed_gamma 1 }
//
// Camera
//
camera { orthographic
location -z * 58
look_at <0, 0, 0>
angle 80
right x * image_width / image_height
up y
sky y
}
//
// Light
//
light_source{<0.0, 0.0, - 30.0> rgb <0.80, 0.80, 0.80> parallel }
//
// Make text
//
#macro make_text (_text, _x)
#local _text =
text { ttf "arial.ttf", _text, 0.02, 0.0 scale 2.1 translate <_x,-0.5,-0.1> pigment {rgb <0,0,0,0,0> }}
_text
#end
//
// Prepare colormaps of desired transparency
//
#declare _f = 0;
#declare _t = 0;
#declare jet = make_colormap (jet, _f, _t);
#declare spring = make_colormap (spring, _f, _t);
#declare hot = make_colormap (hot, _f, _t);
#declare winter = make_colormap (winter, _f, _t);
#declare hsv = make_colormap (hsv, _f, _t);
#declare autumn = make_colormap (autumn, _f, _t);
#declare parula = make_colormap (parula, _f, _t);
#declare summer = make_colormap (summer, _f, _t);
#declare turbo = make_colormap (turbo, _f, _t);
#declare cool = make_colormap (cool, _f, _t);
#declare viridis = make_colormap (viridis, _f, _t);
#declare smooth_cool_warm = make_colormap (smooth_cool_warm, _f, _t);
#declare plasma = make_colormap (plasma, _f, _t);
#declare ext_kindlmann = make_colormap (ext_kindlmann, _f, _t);
#declare kindlmann = make_colormap (kindlmann, _f, _t);
#declare inferno = make_colormap (inferno, _f, _t);
//
// Make box
//
#macro make_box (colormap)
#local _box =
box { <-4.5,-0.3,0>,< 4.5, 0.3, 1.00>
texture { pigment { gradient x
color_map {colormap}
translate -x*0.5
scale 9 }}
scale 10
}
_box
#end
//
// Colormaps list
//
// Plasma
//
union {
text {make_text ("Plasma", -2)}
box {make_box(plasma)}
translate y * 53
}
//
// Smooth cool warm
//
union {
text {make_text ("Smooth cool warm", -7.5)}
box {make_box(smooth_cool_warm)}
translate y * 46
}
//
// Viridis
//
union {
text {make_text ("Viridis", -3)}
box {make_box(viridis)}
translate y * 39
}
//
// Jet
//
union {
text {make_text ("Jet", -2)}
box {make_box(jet)}
translate y * 32
}
//
// Spring
//
union {
text {make_text ("Spring", -3.5)}
box {make_box(spring)}
translate y * 25
}
//
// Hot
//
union {
text {make_text ("Hot", -2)}
box {make_box(hot)}
translate y * 18}
//
// Winter
//
union {
text {make_text ("Winter", -3.5)}
box {make_box(winter)}
translate y * 11
}
//
// HSV
//
union {
text {make_text ("Hsv", -2)}
box {make_box(hsv)}
translate y * 4
}
//
// Autumn
//
union {
text {make_text ("Autumn", -4)}
box {make_box(autumn)}
translate y * -3
}
//
// Parula
//
union {
text {make_text ("Parula", -3.5)}
box {make_box(parula)}
translate y * -10
}
//
// Summer
//
union {
text {make_text ("Summer", -4)}
box {make_box(summer)}
translate y * -17
}
//
// Turbo
//
union {
text {make_text ("Turbo", -3)}
box {make_box(turbo)}
translate y * -24
}
//
// Cool
//
union {
text {make_text ("Cool", -2.5)}
box {make_box(cool)}
translate y * -31
}
//
// Kindlmann
//
union {
text {make_text ("Kindlmann", -5)}
box {make_box(kindlmann)}
translate y * -38
}
//
// Extended kindlmann
//
union {
text {make_text ("Extended kindlmann", -9)}
box {make_box(ext_kindlmann)}
translate y * -45
}
//
// Inferno
//
union {
text {make_text ("Inferno", -4)}
box {make_box(inferno)}
translate y * -52
}