| 2702 | return result; |
| 2703 | } |
| 2704 | std::vector<std::vector<double>> lines(size_t n) { |
| 2705 | static std::vector<std::vector<double>> map = { |
| 2706 | {0, 0.447, 0.741}, {0.85, 0.325, 0.098}, |
| 2707 | {0.929, 0.694, 0.125}, {0.494, 0.184, 0.556}, |
| 2708 | {0.466, 0.674, 0.188}, {0.301, 0.745, 0.933}, |
| 2709 | {0.635, 0.078, 0.184}, {0, 0.447, 0.741}, |
| 2710 | {0.85, 0.325, 0.098}, {0.929, 0.694, 0.125}, |
| 2711 | {0.494, 0.184, 0.556}, {0.466, 0.674, 0.188}, |
| 2712 | {0.301, 0.745, 0.933}, {0.635, 0.078, 0.184}, |
| 2713 | {0, 0.447, 0.741}, {0.85, 0.325, 0.098}, |
| 2714 | {0.929, 0.694, 0.125}, {0.494, 0.184, 0.556}, |
| 2715 | {0.466, 0.674, 0.188}, {0.301, 0.745, 0.933}, |
| 2716 | {0.635, 0.078, 0.184}, {0, 0.447, 0.741}, |
| 2717 | {0.85, 0.325, 0.098}, {0.929, 0.694, 0.125}, |
| 2718 | {0.494, 0.184, 0.556}, {0.466, 0.674, 0.188}, |
| 2719 | {0.301, 0.745, 0.933}, {0.635, 0.078, 0.184}, |
| 2720 | {0, 0.447, 0.741}, {0.85, 0.325, 0.098}, |
| 2721 | {0.929, 0.694, 0.125}, {0.494, 0.184, 0.556}, |
| 2722 | {0.466, 0.674, 0.188}, {0.301, 0.745, 0.933}, |
| 2723 | {0.635, 0.078, 0.184}, {0, 0.447, 0.741}, |
| 2724 | {0.85, 0.325, 0.098}, {0.929, 0.694, 0.125}, |
| 2725 | {0.494, 0.184, 0.556}, {0.466, 0.674, 0.188}, |
| 2726 | {0.301, 0.745, 0.933}, {0.635, 0.078, 0.184}, |
| 2727 | {0, 0.447, 0.741}, {0.85, 0.325, 0.098}, |
| 2728 | {0.929, 0.694, 0.125}, {0.494, 0.184, 0.556}, |
| 2729 | {0.466, 0.674, 0.188}, {0.301, 0.745, 0.933}, |
| 2730 | {0.635, 0.078, 0.184}, {0, 0.447, 0.741}, |
| 2731 | {0.85, 0.325, 0.098}, {0.929, 0.694, 0.125}, |
| 2732 | {0.494, 0.184, 0.556}, {0.466, 0.674, 0.188}, |
| 2733 | {0.301, 0.745, 0.933}, {0.635, 0.078, 0.184}, |
| 2734 | {0, 0.447, 0.741}, {0.85, 0.325, 0.098}, |
| 2735 | {0.929, 0.694, 0.125}, {0.494, 0.184, 0.556}, |
| 2736 | {0.466, 0.674, 0.188}, {0.301, 0.745, 0.933}, |
| 2737 | {0.635, 0.078, 0.184}, {0, 0.447, 0.741}}; |
| 2738 | if (n == 64) { |
| 2739 | return map; |
| 2740 | } |
| 2741 | std::vector<std::vector<double>> result; |
| 2742 | for (size_t i = 0; i < n; ++i) { |
| 2743 | std::array<float, 4> ac = |
| 2744 | colormap_interpolation(static_cast<double>(i), 0., |
| 2745 | static_cast<double>(n - 1), map); |
| 2746 | std::vector<double> vc = {ac[1], ac[2], ac[3]}; |
| 2747 | result.emplace_back(vc); |
| 2748 | } |
| 2749 | return result; |
| 2750 | } |
| 2751 | std::vector<std::vector<double>> colorcube(size_t n) { |
| 2752 | static std::vector<std::vector<double>> map = { |
| 2753 | {0.333333, 0.333333, 0}, |
nothing calls this directly
no test coverage detected