| 2859 | return result; |
| 2860 | } |
| 2861 | std::vector<std::vector<double>> flag(size_t n) { |
| 2862 | static std::vector<std::vector<double>> map = { |
| 2863 | {1, 0, 0}, {1, 1, 1}, {0, 0, 1}, {0, 0, 0}, {1, 0, 0}, |
| 2864 | {1, 1, 1}, {0, 0, 1}, {0, 0, 0}, {1, 0, 0}, {1, 1, 1}, |
| 2865 | {0, 0, 1}, {0, 0, 0}, {1, 0, 0}, {1, 1, 1}, {0, 0, 1}, |
| 2866 | {0, 0, 0}, {1, 0, 0}, {1, 1, 1}, {0, 0, 1}, {0, 0, 0}, |
| 2867 | {1, 0, 0}, {1, 1, 1}, {0, 0, 1}, {0, 0, 0}, {1, 0, 0}, |
| 2868 | {1, 1, 1}, {0, 0, 1}, {0, 0, 0}, {1, 0, 0}, {1, 1, 1}, |
| 2869 | {0, 0, 1}, {0, 0, 0}, {1, 0, 0}, {1, 1, 1}, {0, 0, 1}, |
| 2870 | {0, 0, 0}, {1, 0, 0}, {1, 1, 1}, {0, 0, 1}, {0, 0, 0}, |
| 2871 | {1, 0, 0}, {1, 1, 1}, {0, 0, 1}, {0, 0, 0}, {1, 0, 0}, |
| 2872 | {1, 1, 1}, {0, 0, 1}, {0, 0, 0}, {1, 0, 0}, {1, 1, 1}, |
| 2873 | {0, 0, 1}, {0, 0, 0}, {1, 0, 0}, {1, 1, 1}, {0, 0, 1}, |
| 2874 | {0, 0, 0}, {1, 0, 0}, {1, 1, 1}, {0, 0, 1}, {0, 0, 0}, |
| 2875 | {1, 0, 0}, {1, 1, 1}, {0, 0, 1}, {0, 0, 0}}; |
| 2876 | if (n == 64) { |
| 2877 | return map; |
| 2878 | } |
| 2879 | std::vector<std::vector<double>> result; |
| 2880 | for (size_t i = 0; i < n; ++i) { |
| 2881 | std::array<float, 4> ac = |
| 2882 | colormap_interpolation(static_cast<double>(i), 0., |
| 2883 | static_cast<double>(n - 1), map); |
| 2884 | std::vector<double> vc = {ac[1], ac[2], ac[3]}; |
| 2885 | result.emplace_back(vc); |
| 2886 | } |
| 2887 | return result; |
| 2888 | } |
| 2889 | std::vector<std::vector<double>> white(size_t n) { |
| 2890 | static std::vector<std::vector<double>> map = { |
| 2891 | {1, 1, 1}, {1, 1, 1}, {1, 1, 1}, {1, 1, 1}, {1, 1, 1}, |
nothing calls this directly
no test coverage detected