| 2270 | return result; |
| 2271 | } |
| 2272 | std::vector<std::vector<double>> autumn(size_t n) { |
| 2273 | static std::vector<std::vector<double>> map = { |
| 2274 | {1, 0, 0}, {1, 0.015873, 0}, {1, 0.031746, 0}, |
| 2275 | {1, 0.047619, 0}, {1, 0.0634921, 0}, {1, 0.0793651, 0}, |
| 2276 | {1, 0.0952381, 0}, {1, 0.111111, 0}, {1, 0.126984, 0}, |
| 2277 | {1, 0.142857, 0}, {1, 0.15873, 0}, {1, 0.174603, 0}, |
| 2278 | {1, 0.190476, 0}, {1, 0.206349, 0}, {1, 0.222222, 0}, |
| 2279 | {1, 0.238095, 0}, {1, 0.253968, 0}, {1, 0.269841, 0}, |
| 2280 | {1, 0.285714, 0}, {1, 0.301587, 0}, {1, 0.31746, 0}, |
| 2281 | {1, 0.333333, 0}, {1, 0.349206, 0}, {1, 0.365079, 0}, |
| 2282 | {1, 0.380952, 0}, {1, 0.396825, 0}, {1, 0.412698, 0}, |
| 2283 | {1, 0.428571, 0}, {1, 0.444444, 0}, {1, 0.460317, 0}, |
| 2284 | {1, 0.47619, 0}, {1, 0.492063, 0}, {1, 0.507937, 0}, |
| 2285 | {1, 0.52381, 0}, {1, 0.539683, 0}, {1, 0.555556, 0}, |
| 2286 | {1, 0.571429, 0}, {1, 0.587302, 0}, {1, 0.603175, 0}, |
| 2287 | {1, 0.619048, 0}, {1, 0.634921, 0}, {1, 0.650794, 0}, |
| 2288 | {1, 0.666667, 0}, {1, 0.68254, 0}, {1, 0.698413, 0}, |
| 2289 | {1, 0.714286, 0}, {1, 0.730159, 0}, {1, 0.746032, 0}, |
| 2290 | {1, 0.761905, 0}, {1, 0.777778, 0}, {1, 0.793651, 0}, |
| 2291 | {1, 0.809524, 0}, {1, 0.825397, 0}, {1, 0.84127, 0}, |
| 2292 | {1, 0.857143, 0}, {1, 0.873016, 0}, {1, 0.888889, 0}, |
| 2293 | {1, 0.904762, 0}, {1, 0.920635, 0}, {1, 0.936508, 0}, |
| 2294 | {1, 0.952381, 0}, {1, 0.968254, 0}, {1, 0.984127, 0}, |
| 2295 | {1, 1, 0}}; |
| 2296 | if (n == 64) { |
| 2297 | return map; |
| 2298 | } |
| 2299 | std::vector<std::vector<double>> result; |
| 2300 | for (size_t i = 0; i < n; ++i) { |
| 2301 | std::array<float, 4> ac = |
| 2302 | colormap_interpolation(static_cast<double>(i), 0., |
| 2303 | static_cast<double>(n - 1), map); |
| 2304 | std::vector<double> vc = {ac[1], ac[2], ac[3]}; |
| 2305 | result.emplace_back(vc); |
| 2306 | } |
| 2307 | return result; |
| 2308 | } |
| 2309 | std::vector<std::vector<double>> winter(size_t n) { |
| 2310 | static std::vector<std::vector<double>> map = { |
| 2311 | {0, 0, 1}, |
no test coverage detected