| 340 | return result; |
| 341 | } |
| 342 | std::vector<std::vector<double>> brbg(size_t n) { |
| 343 | static std::vector<std::vector<double>> map = { |
| 344 | {0.54902, 0.317647, 0.0392157}, {0.74902, 0.505882, 0.176471}, |
| 345 | {0.87451, 0.760784, 0.490196}, {0.964706, 0.909804, 0.764706}, |
| 346 | {0.780392, 0.917647, 0.898039}, {0.501961, 0.803922, 0.756863}, |
| 347 | {0.207843, 0.592157, 0.560784}, {0.00392157, 0.4, 0.368627}}; |
| 348 | if (n == 8) { |
| 349 | return map; |
| 350 | } |
| 351 | std::vector<std::vector<double>> result; |
| 352 | for (size_t i = 0; i < n; ++i) { |
| 353 | std::array<float, 4> ac = |
| 354 | colormap_interpolation(static_cast<double>(i), 0., |
| 355 | static_cast<double>(n - 1), map); |
| 356 | std::vector<double> vc = {ac[1], ac[2], ac[3]}; |
| 357 | result.emplace_back(vc); |
| 358 | } |
| 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}, |
nothing calls this directly
no test coverage detected