| 359 | return result; |
| 360 | } |
| 361 | std::vector<std::vector<double>> bugn(size_t n) { |
| 362 | static std::vector<std::vector<double>> map = { |
| 363 | {0.968627, 0.988235, 0.992157}, {0.898039, 0.960784, 0.976471}, |
| 364 | {0.8, 0.92549, 0.901961}, {0.6, 0.847059, 0.788235}, |
| 365 | {0.4, 0.760784, 0.643137}, {0.254902, 0.682353, 0.462745}, |
| 366 | {0.137255, 0.545098, 0.270588}, {0, 0.345098, 0.141176}}; |
| 367 | if (n == 8) { |
| 368 | return map; |
| 369 | } |
| 370 | std::vector<std::vector<double>> result; |
| 371 | for (size_t i = 0; i < n; ++i) { |
| 372 | std::array<float, 4> ac = |
| 373 | colormap_interpolation(static_cast<double>(i), 0., |
| 374 | static_cast<double>(n - 1), map); |
| 375 | std::vector<double> vc = {ac[1], ac[2], ac[3]}; |
| 376 | result.emplace_back(vc); |
| 377 | } |
| 378 | return result; |
| 379 | } |
| 380 | std::vector<std::vector<double>> bupu(size_t n) { |
| 381 | static std::vector<std::vector<double>> map = { |
| 382 | {0.968627, 0.988235, 0.992157}, |
nothing calls this directly
no test coverage detected